MCPcopy Index your code
hub / github.com/tinyplex/tinybase / expectNoFramedElement

Function expectNoFramedElement

test/e2e/common.ts:94–108  ·  view source on GitHub ↗
(
  page: Page,
  selector: string,
  text?: string | RegExp,
  timeout = 5000,
)

Source from the content-addressed store, hash-verified

92};
93
94export const expectNoFramedElement = async (
95 page: Page,
96 selector: string,
97 text?: string | RegExp,
98 timeout = 5000,
99): Promise<void> => {
100 const frame = page.frameLocator('iframe').first();
101 const locator = frame.locator(selector);
102
103 if (text) {
104 await expect(locator.filter({hasText: text})).toBeHidden({timeout});
105 } else {
106 await expect(locator).toBeHidden({timeout});
107 }
108};

Callers 6

todo-app.test.tsFile · 0.90
exerciseCountriesDemoFunction · 0.90
drawing.test.tsFile · 0.90

Calls

no outgoing calls

Tested by 1

exerciseCountriesDemoFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…