MCPcopy
hub / github.com/huntabyte/bits-ui / expectExists

Function expectExists

tests/src/tests/browser-utils.ts:85–87  ·  view source on GitHub ↗
(loc: Locator)

Source from the content-addressed store, hash-verified

83}
84
85export async function expectExists(loc: Locator) {
86 await expect.element(loc).toBeInTheDocument();
87}
88
89export async function focusAndExpectToHaveFocus(loc: Locator) {
90 (loc.element() as HTMLElement).focus();

Callers 15

openFunction · 0.90
openFunction · 0.90
openWithKbdFunction · 0.90
openSubmenuFunction · 0.90
openSingleFunction · 0.90
openMultipleFunction · 0.90

Calls

no outgoing calls

Tested by 15

openFunction · 0.72
openFunction · 0.72
openWithKbdFunction · 0.72
openSubmenuFunction · 0.72
openSingleFunction · 0.72
openMultipleFunction · 0.72
openFunction · 0.72
openFunction · 0.72
openSubmenuFunction · 0.72
openFunction · 0.72
openFunction · 0.72
openSingleFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…