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

/ / ReplExpect

`Const` blank(`res`): `Promise`<`boolean`\> | Name | Type | | :- | :- | | `res` | | `Promise`<`boolean`\> `Const` blankWithOpts(`opts?`): (`res`: ) => `Promise`<`boolean`\> | Name | Type | | :-- | :- | | `opts` | `Object` | `fn` (`res`): `Promise`<`boolean`\> | Name | Type | | :- | :- | | `res` | | `Promise`<`boolean`\> blockAfter(`res`, `delta?`): Transform the given block finder to one that can find the next block | Name | Type | Default value | | : | :- | : | | `res` | | `undefined` | | `delta` | `number` | `1` | blockCount(): `Object` Verify that the number of blocks equals the expected count `Object` | Name | Type | | :-- | : | | `inSplit` | (`splitIndex`: `number`) => { `is`: (`expected`: `number` \| () => `number`) => `void` } | comment(`expectedBody`, `expectedTitle?`): (`res`: ) => `Promise`<\> Expect a CommentaryResponse | Name | Type | | : | :- | | `expectedBody` | `string` | | `expectedTitle?` | `string` | `fn` (`res`): `Promise`<\> | Name | Type | | :- | :- | | `res` | | `Promise`<\> `Const` consoleToBeClear(`app`, `residualBlockCount?`, `splitIndex?`): `Promise`<`boolean`\> The return type `any` comes from webdriverio waitUntil | Name | Type | Default value | | :- | : | : | | `app` | `Application` | `undefined` | | `residualBlockCount` | `number` | `1` | | `splitIndex` | `number` | `1` | `Promise`<`boolean`\> elsewhere(`expectedBody`, `N?`): (`res`: ) => `Promise`<`Application`\> Expect an ElsewhereCommentaryResponse | Name | Type | | :- | :- | | `expectedBody` | `string` | | `N?` | `number` | `fn` (`res`): `Promise`<`Application`\> | Name | Type | | :- | :- | | `res` | | `Promise`<`Application`\> `Const` error(`statusCode`, `expect?`): (`res`: ) => `Promise`<`Application`\> | Name | Type | | :-- | :- | | `statusCode` | `string` \| `number` | | `expect?` | `string` | `fn` (`res`): `Promise`<`Application`\> | Name | Type | | :- | :- | | `res` | | `Promise`<`Application`\> `Const` justOK(`res`): `Promise`<\> expect just ok, and no result value | Name | Type | | :- | :- | | `res` | | `Promise`<\> `Const` ok(`res`): `Promise`<\> | Name | Type | | :- | :- | | `res` | | `Promise`<\> `Const` okWith(`entityName`): (`res`: ) => `Promise`<`boolean`\> expect ok and at least the given result value | Name | Type | | :-- | :- | | `entityName` | `string` | `fn` (`res`): `Promise`<`boolean`\> | Name | Type | | :- | :- | | `res` | | `Promise`<`boolean`\> `Const` okWithAny(`res`): `Promise`<`boolean`\> as long as its ok, accept anything | Name | Type | | :- | :- | | `res` | | `Promise`<`boolean`\> `Const` okWithCustom<`T`\>(`custom`): (`res`: ) => `Promise`<`T`\> as long as its ok, accept anything | Name | Type | | : | :- | | `T` | extends `string` \| `boolean` | | Name | Type | | :- | :-- | | `custom` | `CustomSpec` | `fn` (`res`): `Promise`<`T`\> | Name | Type | | :- | :- | | `res` | | `Promise`<`T`\> `Const` okWithDropDownList(`openAndExpectLabel`, `click?`, `closeAfterOpen?`): (`res`: ) => `Promise`<\> | Name | Type | Default value | | :- | :-- | : | | `openAndExpectLabel` | `string` | `undefined` | | `click` | `boolean` | `false` | | `closeAfterOpen` | `boolean` | `true` | `fn` (`res`): `Promise`<\> | Name | Type | | :- | :- | | `res` | | `Promise`<\> `Const` okWithEvents(`ctx`, `res`): `Promise`<\> | Name | Type | | :- | :- | | `ctx` | | | `res` | | `Promise`<\> `Const` okWithOnly(`entityName`): (`res`: