Skip to content

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 ExpectedNonOkButton

Properties

PropertyTypeDescription
captionIncludesstringA substring of the button's rendered caption.
notestringThe note holding the button, relative to the demo vault root.
statusExclude<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: