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

/ / TestMMR .TestMMR new TestMMR(`param`) new TestMMR() instantiates a class of multi-model-response tests | Name | Type | Description | | : | :- | : | | `param` | `TestParam` | includes: command, testName and metadata | `Readonly` param: `TestParam` badges(`badges`): `void` badges() starts a Mocha Test Suite badges() executes `command` in REPL and expects `badges` are showin in Sidecar | Name | Type | Description | | :- | : | : | | `badges` | `BadgeSpec`[] | is the expected badges shown in the Sidecar | `void` diffPlainText(`mode`, `textB`): `void` | Name | Type | | : | :- | | `mode` | `string` | | `textB` | `string` | `void` kind(`kind`): `void` kind() starts a Mocha Test Suite kind() executes `command` in REPL and expects `kind` is showin in Sidecar | Name | Type | Description | | :-- | :- | : | | `kind` | `string` | is the expected kind text shown in the Sidecar | `void` modes(`expectModes`, `defaultMode`): `void` modes() starts a Mocha Test Suite modes() executes `command` in REPL and expects `modes` are showin in Sidecar | Name | Type | Description | | : | :-- | : | | `expectModes` | [] | is the expected modes shown as Sidecar Tabs | | `defaultMode` | | is the expected default Sidecar Tab | `void` name(`opt?`): `void` name() starts a Mocha Test Suite name() executes `command` in REPL and expects `prettyName` or `name` is shown in Sidecar | Name | Type | | :- | : | | `opt?` | `Object` | | `opt.heroName?` | `boolean` | | `opt.nameHash?` | `string` | | `opt.onclick?` | `Object` | | `opt.onclick.name?` | `ClickExpect` | | `opt.onclick.nameHash?` | `ClickExpect` | | `opt.prettyName?` | `string` | `void` namespace(`opt?`): `void` namespace() starts a Mocha Test Suite namespace() executes `command` in REPL and expects `namespace` is shown in Sidecar | Name | Type | | : | : | | `opt?` | `Object` | | `opt.onclick` | `ClickExpect` | `void` `Private` testClickResult(`cmdIdx`, `command`, `expect`): (`app`: `Application`) => `Promise`<`void`\> | Name | Type | | :-- | :- | | `cmdIdx` | `number` | | `command` | `string` | | `expect` | `string` | `fn` (`app`): `Promise`<`void`\> | Name | Type | | :- | : | | `app` | `Application` | `Promise`<`void`\> toolbarButtons(`buttons`): `void` toolbarButtons() starts a Mocha Test Suite toolbarButtons() executes `command` and expects the `buttons` shown in Sidecar having correct labels and drildown handlers | Name | Type | Description | | :-- | : | :- | | `buttons` | { `command`: `string` \| `Function` ; `confirm?`: `boolean` ; `expectError?`: `127` ; `kind`: `"view"` \| `"drilldown"` ; `label?`: `string` ; `mode`: `string` }[] | is the expected array of `button` shown in the Sidecar Toolbar | `void` toolbarNotExist(): `void` `void` toolbarText(`toolbarText`): `void` toolbarText() starts a Mocha Test Suite toolbarText() executes `command` and expects Sidecar Toolbar has correct `text` and `type` | Name | Type | Description | | :- | :-- | :-- | | `toolbarText` | `Object` | is the expected text content and type shown in the Sidecar Toolbar | | `toolbarText.exact?` | `boolean` | - | | `toolbarText.text` | `string` | - | | `toolbarText.type` | `string` | - | `void`