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 browsertype-connect.spec (#11994)
Dmitry Gozman284f76357f5a
diff --git a/tests/config/browserTest.ts b/tests/config/browserTest.tsindex f7abcc2584..e75083cde9 100644--- a/tests/config/browserTest.ts+++ b/tests/config/browserTest.ts@@ -97,8 +97,12 @@ const test = baseTest.extend<BrowserTestTestFixtures, BrowserTestWorkerFixtures>await remoteServer._start(childProcess, browserType, options);return remoteServer;});- if (remoteServer)+ if (remoteServer) {await remoteServer.close();+ // Give any connected browsers a chance to disconnect to avoid+ // poisoning next test with quasy-alive browsers.+ await new Promise(f => setTimeout(f, 1000));+ }},});