test(skeleton-text): migrate tests to playwright (#25489)

This commit is contained in:
Liam DeBeasi
2022-06-17 13:59:36 -04:00
committed by GitHub
parent 2232071ead
commit 7483d9143a
28 changed files with 24 additions and 20 deletions

View File

@ -1,10 +0,0 @@
import { newE2EPage } from '@stencil/core/testing';
test('skeleton-text: basic', async () => {
const page = await newE2EPage({
url: '/src/components/skeleton-text/test/basic?ionic:_testing=true',
});
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
});

View File

@ -0,0 +1,12 @@
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('skeleton-text: basic', () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto('/src/components/skeleton-text/test/basic');
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`skeleton-text-basic-${page.getSnapshotSettings()}.png`);
});
});

View File

@ -1,10 +0,0 @@
import { newE2EPage } from '@stencil/core/testing';
test('skeleton-text: custom', async () => {
const page = await newE2EPage({
url: '/src/components/skeleton-text/test/custom?ionic:_testing=true',
});
const compare = await page.compareScreenshot();
expect(compare).toMatchScreenshot();
});

View File

@ -0,0 +1,12 @@
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('skeleton-text: custom', () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto('/src/components/skeleton-text/test/custom');
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`skeleton-text-custom-${page.getSnapshotSettings()}.png`);
});
});