Skip to content

Commit cd09d85

Browse files
authored
test: unflake "should pick element" (#37103)
1 parent 72e4772 commit cd09d85

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/library/debug-controller.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ test('should pick element', async ({ backend, connectedBrowser }) => {
8080
const events = [];
8181
backend.on('inspectRequested', event => events.push(event));
8282

83-
await backend.setRecorderMode({ mode: 'inspecting' });
84-
8583
const context = await connectedBrowser.newContextForReuse();
86-
const [page] = context.pages();
84+
const page = await context.newPage();
85+
86+
await backend.setRecorderMode({ mode: 'inspecting' });
8787

8888
await page.setContent('<button>Submit</button>');
8989
await page.getByRole('button').click();

0 commit comments

Comments
 (0)