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

This commit is contained in:
Dmitry Gozman 2023-01-24 14:00:10 -08:00 committed by GitHub
parent 1f576ff0bc
commit 1196b4f0f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 11 deletions

View File

@ -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()

View File

@ -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: {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -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 }) => {