-
Notifications
You must be signed in to change notification settings - Fork 4.8k
chore(bidi): add support for context locators #38129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,8 +35,10 @@ function dumpFrames(frame: Frame, indentation: string = ''): string[] { | |
| return result; | ||
| } | ||
|
|
||
| it('should handle nested frames @smoke', async ({ page, server, isAndroid }) => { | ||
| it('should handle nested frames @smoke', async ({ page, server, isAndroid, browserName, channel }) => { | ||
| it.skip(isAndroid, 'No cross-process on Android'); | ||
| it.skip(browserName === 'firefox' && channel?.startsWith('moz-firefox'), 'frame.name() is racy with BiDi'); | ||
| it.skip(channel?.startsWith('bidi-chrom'), 'frame.name() is racy with BiDi'); | ||
|
|
||
| await page.goto(server.PREFIX + '/frames/nested-frames.html'); | ||
| expect(dumpFrames(page.mainFrame())).toEqual([ | ||
|
|
@@ -154,7 +156,10 @@ it('should report frame from-inside shadow DOM', async ({ page, server }) => { | |
| expect(page.frames()[1].url()).toBe(server.EMPTY_PAGE); | ||
| }); | ||
|
|
||
| it('should report frame.name()', async ({ page, server }) => { | ||
| it('should report frame.name()', async ({ page, server, browserName, channel }) => { | ||
| it.skip(browserName === 'firefox' && channel?.startsWith('moz-firefox'), 'frame.name() is racy with BiDi'); | ||
| it.skip(channel?.startsWith('bidi-chrom'), 'frame.name() is racy with BiDi'); | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW, this test could be fixed by using
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As the test's title suggests it validates
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that's why I didn't include this in the PR. I was just mentioning it to show what the alternative to |
||
|
|
||
| await attachFrame(page, 'theFrameId', server.EMPTY_PAGE); | ||
| await page.evaluate(url => { | ||
| const frame = document.createElement('iframe'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.