test(many): migrate to new toHaveScreenshot API (#26797)
@ -14,7 +14,7 @@ test.describe('text: basic', () => {
|
||||
`);
|
||||
|
||||
const text = page.locator('ion-text');
|
||||
expect(await text.nth(0).screenshot()).toMatchSnapshot(`text-${page.getSnapshotSettings()}.png`);
|
||||
await expect(text.nth(0)).toHaveScreenshot(`text-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should render text with color prop', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -24,6 +24,6 @@ test.describe('text: basic', () => {
|
||||
`);
|
||||
|
||||
const text = page.locator('ion-text');
|
||||
expect(await text.nth(0).screenshot()).toMatchSnapshot(`text-color-${page.getSnapshotSettings()}.png`);
|
||||
await expect(text.nth(0)).toHaveScreenshot(`text-color-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 3.4 KiB |