test(many): migrate to new toHaveScreenshot API (#26797)
@ -22,7 +22,7 @@ test.describe('tabs: placement', () => {
|
||||
`);
|
||||
|
||||
const tabs = page.locator('ion-tabs');
|
||||
expect(await tabs.screenshot()).toMatchSnapshot(`tabs-tab-bar-top-${page.getSnapshotSettings()}.png`);
|
||||
await expect(tabs).toHaveScreenshot(`tabs-tab-bar-top-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should show tab bar at the bottom of tabs', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -35,6 +35,6 @@ test.describe('tabs: placement', () => {
|
||||
`);
|
||||
|
||||
const tabs = page.locator('ion-tabs');
|
||||
expect(await tabs.screenshot()).toMatchSnapshot(`tabs-tab-bar-bottom-${page.getSnapshotSettings()}.png`);
|
||||
await expect(tabs).toHaveScreenshot(`tabs-tab-bar-bottom-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 2.5 KiB |