Project: Kui (App Definition and Development / Application Definition & Image Build)
File: kui_shell_test.Util.md

/ / Util

clickBlockActionButton(`res`, `buttonSelector`): `Promise`<`void`\> Click the specified button action button | Name | Type | | : | :- | | `res` | | | `buttonSelector` | `string` | `Promise`<`void`\> clickNewTabButton(`ctx`, `expectedNewTabIndex`): `Promise`<`Application`\> | Name | Type | | :-- | :-- | | `ctx` | | | `expectedNewTabIndex` | `number` | `Promise`<`Application`\> clickSidecarButtonCustomized(`ctx`, `res`, `selector`): `Promise`<`void`\> Click a sidecar button with `selector` | Name | Type | | : | :- | | `ctx` | | | `res` | | | `selector` | `string` | `Promise`<`void`\> clickSidecarModeButton(`ctx`, `res`, `mode`): `Promise`<`void`\> Click sidecar mode button by `mode` | Name | Type | | :-- | :- | | `ctx` | | | `res` | | | `mode` | `string` | `Promise`<`void`\> clickToExpandMonacoFold(`res`, `lineIdx`): `Promise`<`void`\> Expand the fold on the given line of a monaco editor | Name | Type | | :-- | :- | | `res` | | | `lineIdx` | `number` | `Promise`<`void`\> closeAllExceptFirstTab(`expectedInitialNTabs`): `void` Close all except the first tab | Name | Type | | : | :- | | `expectedInitialNTabs` | `number` | `void` copyBlockLink(`res`): `Promise`<`void`\> Click the section button on a block, and expect it to be a section | Name | Type | | :- | :- | | `res` | | `Promise`<`void`\> doCancel(`cmd`): `Promise`<`unknown`\> | Name | Type | | :- | :- | | `cmd` | `string` | `Promise`<`unknown`\> doClear(`residualBlockCount`, `splitIndex?`): `Promise`<`unknown`\> | Name | Type | Default value | | :- | :- | : | | `residualBlockCount` | `number` | `undefined` | | `splitIndex` | `number` | `1` | `Promise`<`unknown`\> doList(`ctx`, `command`, `name`): `Promise`<`string`\> Execute `command` and expect a table with `name` | Name | Type | | :-- | :-- | | `ctx` | | | `command` | `string` | | `name` | `string` | `Promise`<`string`\> `Const` expectArray(`expected`, `failFast?`, `subset?`): (`actual`: `string` \| `string`[]) => `boolean` is the given actual array the same as the given expected array? | Name | Type | Default value | | : | : | : | | `expected` | `string`[] | `undefined` | | `failFast` | `boolean` | `true` | | `subset` | `boolean` | `false` | `fn` (`actual`): `boolean` | Name | Type | | :- | : | | `actual` | `string` \| `string`[] | `boolean` `Const` expectStruct(`struct1`, `noParse?`, `failFast?`): (`str`: `string`) => `boolean` is the given struct2 the same as the given struct2 (given as a string) | Name | Type | Default value | | : | :-- | : | | `struct1` | `object` | `undefined` | | `noParse` | `boolean` | `false` | | `failFast` | `boolean` | `true` | `fn` (`str`): `boolean` | Name | Type | | :- | :- | | `str` | `string` | `boolean` `Const` expectSubset(`struct1`, `failFast?`): (`str`: `string`) => `boolean` | Name | Type | Default value | | : | :-- | : | | `struct1` | `object` | `undefined` | | `failFast` | `boolean` | `true` | `fn` (`str`): `boolean` | Name | Type | | :- | :- | | `str` | `string` | `boolean` `Const` expectText(`app`, `expectedText`, `exact?`, `timeout?`): (`selector`: `string`) => `Promise`<`Application`\> | Name | Type | Default value | | :- | : | :- | | `app` | `Application` | `undefined` | | `expectedText` | `string` | `undefined` | | `exact` | `boolean` | `true` | | `timeout` | `number` | `CLI.waitTimeout` | `fn` (`selector`): `Promise`<`Application`\> | Name | Type | | : | :- | | `selector` | `string` | `Promise`<`Application`\> `Const` expectYAML(`struct1`, `subset?`, `failFast?`): (`str`: `string`) => `boolean` | Name | Type | Default value | | : | :-- |