( page: Page, selector: string, text?: string | RegExp, timeout = 5000, )
| 92 | }; |
| 93 | |
| 94 | export 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 | }; |
no outgoing calls
searching dependent graphs…