ExpectedNonOkButton
A button that is EXPECTED not to report success, so the suite does not fail on it.
Import:
import type { ExpectedNonOkButton } from 'obsidian-dev-utils/script-utils/demo-vault-buttons';Signature:
export interface ExpectedNonOkButtonProperties
| Property | Type | Description |
|---|---|---|
| captionIncludes | string | A substring of the button's rendered caption. |
| note | string | The note holding the button, relative to the demo vault root. |
| status | Exclude<DemoVaultButtonResult['status'], 'ok'> | The status the button is expected to end in. Any other status still fails, so an error demo that starts timing out instead is reported rather than waved through. |
Links to this page: