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
fix(trace-viewer): remove speculative 1s isUnderTest startup delay (#42071)
Simon Knott1ddd4f833a9f
diff --git a/packages/trace-viewer/src/index.tsx b/packages/trace-viewer/src/index.tsxindex 671a2235ae..933e3fed21 100644--- a/packages/trace-viewer/src/index.tsx+++ b/packages/trace-viewer/src/index.tsx@@ -26,8 +26,6 @@ import { LiveWorkbenchLoader } from './ui/liveWorkbenchLoader';applyTheme();if (window.location.protocol !== 'file:') {- if (queryParams.get('isUnderTest') === 'true')- await new Promise(f => setTimeout(f, 1000));if (!navigator.serviceWorker)throw new Error(`Service workers are not supported.\nMake sure to serve the Trace Viewer (${window.location}) via HTTPS or localhost.`);navigator.serviceWorker.register('sw.bundle.js');diff --git a/packages/trace-viewer/src/uiMode.tsx b/packages/trace-viewer/src/uiMode.tsxindex 5dac2082e8..24db23f933 100644--- a/packages/trace-viewer/src/uiMode.tsx+++ b/packages/trace-viewer/src/uiMode.tsx@@ -23,8 +23,6 @@ import { UIModeView } from './ui/uiModeView';(async () => {applyTheme();if (window.location.protocol !== 'file:') {- if (window.location.href.includes('isUnderTest=true'))- await new Promise(f => setTimeout(f, 1000));if (!navigator.serviceWorker)throw new Error(`Service workers are not supported.\nMake sure to serve the website (${window.location}) via HTTPS or localhost.`);navigator.serviceWorker.register('sw.bundle.js');