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): correctly trim locations on Windows (#29321)
Max Schmitt7d64ca4c5410
diff --git a/packages/trace-viewer/src/ui/errorsTab.tsx b/packages/trace-viewer/src/ui/errorsTab.tsxindex 05b99e59b6..71b6059c29 100644--- a/packages/trace-viewer/src/ui/errorsTab.tsx+++ b/packages/trace-viewer/src/ui/errorsTab.tsx@@ -56,7 +56,7 @@ export const ErrorsTab: React.FunctionComponent<{let longLocation: string | undefined;const stackFrame = error.stack?.[0];if (stackFrame) {- const file = stackFrame.file.replace(/.*\/(.*)/, '$1');+ const file = stackFrame.file.replace(/.*[/\\](.*)/, '$1');location = file + ':' + stackFrame.line;longLocation = stackFrame.file + ':' + stackFrame.line;}