test(many): migrate to new toHaveScreenshot API (#26797)

This commit is contained in:
Liam DeBeasi
2023-02-16 11:37:29 -05:00
committed by GitHub
parent caa8719cea
commit 804e54e5ca
2126 changed files with 311 additions and 401 deletions

View File

@ -7,5 +7,5 @@ test('should not have visual regressions', async ({ page, skip }) => {
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`grid-basic-${page.getSnapshotSettings()}.png`);
await expect(page).toHaveScreenshot(`grid-basic-${page.getSnapshotSettings()}.png`);
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 KiB

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -7,5 +7,5 @@ test('should not have visual regressions', async ({ page, skip }) => {
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`grid-offsets-${page.getSnapshotSettings()}.png`);
await expect(page).toHaveScreenshot(`grid-offsets-${page.getSnapshotSettings()}.png`);
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 111 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -7,5 +7,5 @@ test('should not have visual regressions', async ({ page, skip }) => {
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`grid-padding-${page.getSnapshotSettings()}.png`);
await expect(page).toHaveScreenshot(`grid-padding-${page.getSnapshotSettings()}.png`);
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -7,5 +7,5 @@ test('should not have visual regressions', async ({ page, skip }) => {
await page.setIonViewport();
expect(await page.screenshot()).toMatchSnapshot(`grid-sizes-${page.getSnapshotSettings()}.png`);
await expect(page).toHaveScreenshot(`grid-sizes-${page.getSnapshotSettings()}.png`);
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 46 KiB