Kui API Documentation - v11.0.0 / @kui-shell/test / SidecarExpect
@kui-shell/test.SidecarExpect
- badge
- breadcrumbs
- button
- closed
- defaultMode
- descriptionList
- form
- fullyClosed
- heroName
- keyToClose
- kind
- mode
- modes
- name
- namehash
- namespace
- notOpen
- open
- openInBlockAfter
- openWithFailure
- popupTitle
- showing
- showingLeftNav
- showingNotClickable
- showingTopNav
- tableContent
- textPlainContent
- textPlainContentFromMonaco
- toolbarAlert
- toolbarText
- yaml
▸ Const badge(title, css?, absent?): (res: AppAndCount) => Promise<AppAndCount>
Expect the given badge to exist in the sidecar header
| Name | Type | Default value |
|---|---|---|
title |
string |
undefined |
css? |
string |
undefined |
absent |
boolean |
false |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:71
▸ breadcrumbs(breadcrumbs): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
breadcrumbs |
string[] |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:369
▸ Const button(button): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
button |
Object |
button.label? |
string |
button.mode |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:91
▸ Const closed(res): Promise<AppAndCount>
either minimized or fully closed
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:60
▸ Const defaultMode(expected): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expected |
Object |
expected.label? |
string |
expected.mode |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:181
▸ Const descriptionList(content): (res: AppAndCount) => Promise<AppAndCount>
Expect DescriptionList content in the current tab
| Name | Type |
|---|---|
content |
Record<string, string | number | boolean> |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:384
▸ form(form, idPrefix?): (res: AppAndCount) => Promise<AppAndCount>
expect a form in the sidecar content
| Name | Type | Default value |
|---|---|---|
form |
Record<string, string> |
undefined |
idPrefix |
string |
'kui-form' |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:260
▸ Const fullyClosed(res): Promise<AppAndCount>
fully closed, not just minimized
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:52
▸ Const heroName(count, expectedName): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
count |
number |
expectedName |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:145
▸ Const keyToClose(res): Promise<AppAndCount>
close the sidecar by ESCAPE key
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:65
▸ Const kind(expectedKind): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedKind |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:153
▸ Const mode(expectedMode): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedMode |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:98
▸ Const modes(expected): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expected |
{ dafaultMode?: boolean ; label?: string ; mode: string }[] |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:157
▸ Const name(count, expectedName): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
count |
number |
expectedName |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:143
▸ Const namehash(count, expectedNameHash): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
count |
number |
expectedNameHash |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:147
▸ Const namespace(expectedNamespace): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedNamespace |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:150
▸ Const notOpen(res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:37
▸ Const open(res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:25
▸ openInBlockAfter(res, delta?): Promise<AppAndCount>
Same as open(), but in the block proceding the given block
| Name | Type | Default value |
|---|---|---|
res |
AppAndCount |
undefined |
delta |
number |
1 |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:33
▸ Const openWithFailure(res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:44
▸ popupTitle(res, expectedTitle): Promise<boolean>
| Name | Type |
|---|---|
res |
AppAndCount |
expectedTitle |
string |
Promise<boolean>
packages/test/src/api/sidecar-expect.ts:247
▸ Const showing(expectedName, expectedActivationId?, expectSubstringMatchOnName?, expectedPackageName?, expectType?, waitThisLong?, which?, clickable?): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedName |
string |
expectedActivationId? |
string |
expectSubstringMatchOnName? |
boolean |
expectedPackageName? |
string |
expectType? |
string |
waitThisLong? |
number |
which? |
"leftnav" | "topnav" |
clickable? |
boolean |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:281
▸ Const showingLeftNav(expectedName): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedName |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:366
▸ Const showingNotClickable(expectedName, expectedPackageName?): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedName |
string |
expectedPackageName? |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:360
▸ Const showingTopNav(expectedName): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expectedName |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:363
▸ tableContent(res, nRows, nCells): Promise<void>
| Name | Type |
|---|---|
res |
AppAndCount |
nRows |
number |
nCells |
number |
Promise<void>
packages/test/src/api/sidecar-expect.ts:227
▸ Const textPlainContent(content): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
content |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:201
▸ Const textPlainContentFromMonaco(expectedText, exact?): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type | Default value |
|---|---|---|
expectedText |
string |
undefined |
exact |
boolean |
true |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:206
▸ Const toolbarAlert(expect): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expect |
Object |
expect.exact? |
boolean |
expect.text |
string |
expect.type |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:124
▸ Const toolbarText(expect): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
expect |
Object |
expect.exact? |
boolean |
expect.text |
string |
expect.timeout? |
number |
expect.type |
string |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>
packages/test/src/api/sidecar-expect.ts:112
▸ Const yaml(content): (res: AppAndCount) => Promise<AppAndCount>
| Name | Type |
|---|---|
content |
object |
fn
▸ (res): Promise<AppAndCount>
| Name | Type |
|---|---|
res |
AppAndCount |
Promise<AppAndCount>