← Files BugBugARCHIVED FILE
skills/bugbug-steps-authoring/steps/assert.md
1.4 KB · Dec 3, 2026 · 18:22 UTC
# assert ## Description Create an assertion step. Common payload fields are documented in [Common step fields](_common-fields.md). ## Required Fields | Field | Type | Description | | --- | --- | --- | | `assertionExpectedValue` | `string \| null` | Expected assertion value when applicable. | | `assertionJavaScript` | `string \| null` | Custom JavaScript used by script-based assertions. | | `assertionProperty` | `"checked" \| "count" \| "customJavaScript" \| "exist" \| "notChecked" \| "notExist" \| "notVisible" \| "textContent" \| "hasAttribute" \| "hasNotAttribute" \| "value" \| "visible" \| "pageTitle" \| "pageShowsText" \| "pageDoesNotShowText" \| "pageUrlIs" \| "downloadStarted" \| "variableValue" \| "clipboardValue" \| "disabled" \| "notDisabled"` | Assertion property to inspect, for example text or value. | | `assertionType` | `"contain" \| "equal" \| "greaterThan" \| "lessThan" \| "match" \| "notContain" \| "notEqual" \| "notMatch" \| "any"` | Assertion operator used by BugBug. | | `assertionVariableName` | `string \| null` | Variable name used by variable-based assertions. | | `selectorsPresets` | `array<object>` | Target selectors used by the element-related assertion. | ## Optional Fields | Field | Type | Description | | --- | --- | --- | | `assertionCaseInsensitive` | `boolean \| null` | Ignore letter case in text comparisons. Null uses legacy behavior; omitted updates keep the current setting. |
SHA-256: 4e3a833b316ba546d01112db38d3584ebdc68b763dc732d163ac3fd62adf5884