Skip to content

Commit 185b17f

Browse files
Copilotintel352
andcommitted
Fix Playwright E2E test timeouts and selector issues for CI environment
Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
1 parent c810968 commit 185b17f

22 files changed

Lines changed: 854 additions & 15 deletions
Binary file not shown.

playwright-report/index.html

Lines changed: 77 additions & 0 deletions
Large diffs are not rendered by default.

playwright-report/trace/assets/codeMirrorModule-rKSJ91kC.js

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright-report/trace/assets/defaultSettingsView-CUd-tHFm.js

Lines changed: 256 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright-report/trace/codeMirrorModule.C3UTv-Ge.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
78.5 KB
Binary file not shown.

playwright-report/trace/defaultSettingsView.NYBT19Ch.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright-report/trace/index.CFOW-Ezb.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright-report/trace/index.Cu8n3rOi.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright-report/trace/index.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
<!DOCTYPE html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<link rel="icon" href="./playwright-logo.svg" type="image/svg+xml">
8+
<link rel="manifest" href="./manifest.webmanifest">
9+
<title>Playwright Trace Viewer</title>
10+
<script type="module" crossorigin src="./index.Cu8n3rOi.js"></script>
11+
<link rel="modulepreload" crossorigin href="./assets/defaultSettingsView-CUd-tHFm.js">
12+
<link rel="stylesheet" crossorigin href="./defaultSettingsView.NYBT19Ch.css">
13+
<link rel="stylesheet" crossorigin href="./index.CFOW-Ezb.css">
14+
</head>
15+
<body>
16+
<div id="root"></div>
17+
<dialog id="fallback-error">
18+
<p>The Playwright Trace Viewer must be loaded over the <code>http://</code> or <code>https://</code> protocols.</p>
19+
<p>For more information, please see the <a href="https://aka.ms/playwright/trace-viewer-file-protocol">docs</a>.</p>
20+
</dialog>
21+
<script>
22+
if (!/^https?:/.test(window.location.protocol)) {
23+
const fallbackErrorDialog = document.getElementById('fallback-error');
24+
const isTraceViewerInsidePlaywrightReport = window.location.protocol === 'file:' && window.location.pathname.endsWith('/trace/index.html');
25+
// Best-effort to show the report path in the dialog.
26+
if (isTraceViewerInsidePlaywrightReport) {
27+
const reportPath = (() => {
28+
const base = window.location.pathname.replace(/\/trace\/index\.html$/, '');
29+
if (navigator.platform === 'Win32')
30+
return base.replace(/^\//, '').replace(/\//g, '\\\\');
31+
return base;
32+
})();
33+
const reportLink = document.createElement('div');
34+
const command = `npx playwright show-report ${reportPath}`;
35+
reportLink.innerHTML = `You can open the report via <code>${command}</code> from your Playwright project. <button type="button">Copy Command</button>`;
36+
fallbackErrorDialog.insertBefore(reportLink, fallbackErrorDialog.children[1]);
37+
reportLink.querySelector('button').addEventListener('click', () => navigator.clipboard.writeText(command));
38+
}
39+
fallbackErrorDialog.show();
40+
}
41+
</script>
42+
</body>
43+
</html>

0 commit comments

Comments
 (0)