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
core(ct): import paths (#18131)
sand4rt4ed2a01d9c4a
diff --git a/docs/src/test-components-js.md b/docs/src/test-components-js.mdindex a6e072ae4b..18b4d0a9b3 100644--- a/docs/src/test-components-js.md+++ b/docs/src/test-components-js.md@@ -76,7 +76,7 @@ also link the script called `playwright/index.[tj]s`.<html lang="en"><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>```diff --git a/examples/components-vue/playwright/index.html b/examples/components-vue/playwright/index.htmlindex 7a571b376e..fac68339ce 100644--- a/examples/components-vue/playwright/index.html+++ b/examples/components-vue/playwright/index.html@@ -4,6 +4,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.js"></script>+ <script type="module" src="./index.js"></script></body></html>diff --git a/packages/web/playwright/index.html b/packages/web/playwright/index.htmlindex b5fe7b6014..2d7858da55 100644--- a/packages/web/playwright/index.html+++ b/packages/web/playwright/index.html@@ -24,6 +24,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-react-vite/playwright/index.html b/tests/components/ct-react-vite/playwright/index.htmlindex 25e6da163c..2b1557e4ef 100644--- a/tests/components/ct-react-vite/playwright/index.html+++ b/tests/components/ct-react-vite/playwright/index.html@@ -8,6 +8,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-react/playwright/index.html b/tests/components/ct-react/playwright/index.htmlindex 151b6b0138..280ca94d98 100644--- a/tests/components/ct-react/playwright/index.html+++ b/tests/components/ct-react/playwright/index.html@@ -8,6 +8,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-solid/playwright/index.html b/tests/components/ct-solid/playwright/index.htmlindex c558aa4762..c04914b10d 100644--- a/tests/components/ct-solid/playwright/index.html+++ b/tests/components/ct-solid/playwright/index.html@@ -8,6 +8,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-svelte-vite/playwright/index.html b/tests/components/ct-svelte-vite/playwright/index.htmlindex 1f7a3a766e..b8b1472b91 100644--- a/tests/components/ct-svelte-vite/playwright/index.html+++ b/tests/components/ct-svelte-vite/playwright/index.html@@ -8,6 +8,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-svelte/playwright/index.html b/tests/components/ct-svelte/playwright/index.htmlindex 9f3d2a65b9..43136a165e 100644--- a/tests/components/ct-svelte/playwright/index.html+++ b/tests/components/ct-svelte/playwright/index.html@@ -8,6 +8,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-vue-cli/playwright/index.html b/tests/components/ct-vue-cli/playwright/index.htmlindex 1df0630093..943d4d14db 100644--- a/tests/components/ct-vue-cli/playwright/index.html+++ b/tests/components/ct-vue-cli/playwright/index.html@@ -7,6 +7,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-vue-vite/playwright/index.html b/tests/components/ct-vue-vite/playwright/index.htmlindex 027cbc1eb2..7b2273ee63 100644--- a/tests/components/ct-vue-vite/playwright/index.html+++ b/tests/components/ct-vue-vite/playwright/index.html@@ -8,6 +8,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/components/ct-vue2-cli/playwright/index.html b/tests/components/ct-vue2-cli/playwright/index.htmlindex 1df0630093..943d4d14db 100644--- a/tests/components/ct-vue2-cli/playwright/index.html+++ b/tests/components/ct-vue2-cli/playwright/index.html@@ -7,6 +7,6 @@</head><body><div id="root"></div>- <script type="module" src="/playwright/index.ts"></script>+ <script type="module" src="./index.ts"></script></body></html>diff --git a/tests/playwright-test/playwright.ct-build.spec.ts b/tests/playwright-test/playwright.ct-build.spec.tsindex 0a6f3d3583..82c8edfe97 100644--- a/tests/playwright-test/playwright.ct-build.spec.ts+++ b/tests/playwright-test/playwright.ct-build.spec.ts@@ -21,7 +21,7 @@ test.describe.configure({ mode: 'parallel' });test('should work with the empty component list', async ({ runInlineTest }, testInfo) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': ``,'a.test.ts': `@@ -45,7 +45,7 @@ test('should work with the empty component list', async ({ runInlineTest }, testtest('should extract component list', async ({ runInlineTest }, testInfo) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.ts"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.ts"></script>`,'playwright/index.ts': ``,'src/button.tsx': `@@ -206,7 +206,7 @@ test('should cache build', async ({ runInlineTest }, testInfo) => {await test.step('original test', async () => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.ts"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.ts"></script>`,'playwright/index.ts': ``,'src/button.tsx': `@@ -273,7 +273,7 @@ test('should cache build', async ({ runInlineTest }, testInfo) => {test('should not use global config for preview', async ({ runInlineTest }) => {const result1 = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': ``,'vite.config.js': `export default {diff --git a/tests/playwright-test/playwright.ct-react.spec.ts b/tests/playwright-test/playwright.ct-react.spec.tsindex a507b05895..16a0b7c39f 100644--- a/tests/playwright-test/playwright.ct-react.spec.ts+++ b/tests/playwright-test/playwright.ct-react.spec.ts@@ -18,7 +18,7 @@ import { test, expect } from './playwright-test-fixtures';test('should work with TSX', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.ts"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.ts"></script>`,'playwright/index.ts': `//@no-header`,@@ -44,7 +44,7 @@ test('should work with TSX', async ({ runInlineTest }) => {test('should work with JSX', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,@@ -72,7 +72,7 @@ test('should work with JSX', async ({ runInlineTest }) => {test('should work with JSX in JS', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,@@ -100,7 +100,7 @@ test('should work with JSX in JS', async ({ runInlineTest }) => {test('should work with JSX in JS and in JSX', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,@@ -140,7 +140,7 @@ test('should work with JSX in JS and in JSX', async ({ runInlineTest }) => {test('should work with stray TSX import', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.ts"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.ts"></script>`,'playwright/index.ts': `//@no-header`,@@ -174,7 +174,7 @@ test('should work with stray TSX import', async ({ runInlineTest }) => {test('should work with stray JSX import', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,@@ -208,7 +208,7 @@ test('should work with stray JSX import', async ({ runInlineTest }) => {test.fixme('should work with stray JS import', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,@@ -242,7 +242,7 @@ test.fixme('should work with stray JS import', async ({ runInlineTest }) => {test('should work with JSX in variable', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,@@ -272,7 +272,7 @@ test('should work with JSX in variable', async ({ runInlineTest }) => {test('should return root locator for fragments', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.js"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.js"></script>`,'playwright/index.js': `//@no-header`,'src/button.jsx': `@@ -299,7 +299,7 @@ test('should return root locator for fragments', async ({ runInlineTest }) => {test('should respect default property values', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.ts"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.ts"></script>`,'playwright/index.ts': `//@no-header`,'src/label.tsx': `//@no-headerexport const Label = ({ checked }) => <div>type:{typeof checked} value:{String(checked)}</div>;@@ -323,7 +323,7 @@ test('should respect default property values', async ({ runInlineTest }) => {test('should bundle public folder', async ({ runInlineTest }) => {const result = await runInlineTest({- 'playwright/index.html': `<script type="module" src="/playwright/index.ts"></script>`,+ 'playwright/index.html': `<script type="module" src="./index.ts"></script>`,'playwright/index.ts': `//@no-header`,