Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: unflake "should pick element" (#37103)
Simon Knottcd09d859a97b
diff --git a/tests/library/debug-controller.spec.ts b/tests/library/debug-controller.spec.tsindex f8e4a751d0..115ace0cb4 100644--- a/tests/library/debug-controller.spec.ts+++ b/tests/library/debug-controller.spec.ts@@ -80,10 +80,10 @@ test('should pick element', async ({ backend, connectedBrowser }) => {const events = [];backend.on('inspectRequested', event => events.push(event));- await backend.setRecorderMode({ mode: 'inspecting' });-const context = await connectedBrowser.newContextForReuse();- const [page] = context.pages();+ const page = await context.newPage();++ await backend.setRecorderMode({ mode: 'inspecting' });await page.setContent('<button>Submit</button>');await page.getByRole('button').click();