Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: do not use docker for "Web Components" tests (#20339)

Dmitry Gozman1196b4f0f587
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index d54b8a503d..eed38d676e 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -144,14 +144,7 @@ jobs:
DEBUG: pw:install
- run: npm run build
- run: npx playwright install --with-deps
- - run: |
- ./utils/docker/build.sh --amd64 focal $PWTEST_DOCKER_BASE_IMAGE
- npx playwright docker build
- nohup npx playwright docker start &
- xvfb-run npm run test-html-reporter
- env:
- PLAYWRIGHT_DOCKER: 1
- PWTEST_DOCKER_BASE_IMAGE: playwright:localbuild
+ - run: xvfb-run npm run test-html-reporter
- run: xvfb-run npm run test-web
if: always()
diff --git a/packages/html-reporter/playwright.config.ts b/packages/html-reporter/playwright.config.ts
index fe52192bee..41140fb50c 100644
--- a/packages/html-reporter/playwright.config.ts
+++ b/packages/html-reporter/playwright.config.ts
@@ -20,7 +20,6 @@ export default defineConfig({
testDir: 'src',
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
- ignoreSnapshots: !process.env.PLAYWRIGHT_DOCKER,
snapshotPathTemplate: '{testDir}/__screenshots__/{projectName}/{testFilePath}/{arg}{ext}',
reporter: 'html',
use: {
diff --git a/packages/html-reporter/src/__screenshots__/chromium/chip.spec.tsx/expand-collapse-1.png b/packages/html-reporter/src/__screenshots__/chromium/chip.spec.tsx/expand-collapse-1.png
deleted file mode 100644
index 6b858f6c85..0000000000
Binary files a/packages/html-reporter/src/__screenshots__/chromium/chip.spec.tsx/expand-collapse-1.png and /dev/null differ
diff --git a/packages/html-reporter/src/__screenshots__/chromium/chip.spec.tsx/render-long-title-1.png b/packages/html-reporter/src/__screenshots__/chromium/chip.spec.tsx/render-long-title-1.png
deleted file mode 100644
index 30ceb67e4b..0000000000
Binary files a/packages/html-reporter/src/__screenshots__/chromium/chip.spec.tsx/render-long-title-1.png and /dev/null differ
diff --git a/packages/html-reporter/src/chip.spec.tsx b/packages/html-reporter/src/chip.spec.tsx
index 0329e49d45..3a0cfe908a 100644
--- a/packages/html-reporter/src/chip.spec.tsx
+++ b/packages/html-reporter/src/chip.spec.tsx
@@ -28,7 +28,6 @@ test('expand collapse', async ({ mount }) => {
await expect(component.getByText('Chip body')).not.toBeVisible();
await component.getByText('Title').click();
await expect(component.getByText('Chip body')).toBeVisible();
- await expect(component).toHaveScreenshot();
});
test('render long title', async ({ mount }) => {
@@ -38,7 +37,6 @@ test('render long title', async ({ mount }) => {
</AutoChip>);
await expect(component).toContainText('Extremely long title.');
await expect(component.getByText('Extremely long title.')).toHaveAttribute('title', title);
- await expect(component).toHaveScreenshot();
});
test('setExpanded is called', async ({ mount }) => {