Merge remote-tracking branch 'origin/main' into chore/sync-with-main-6

This commit is contained in:
amandaesmith3
2023-05-05 13:30:21 -05:00
1333 changed files with 8602 additions and 6610 deletions

View File

@ -1,12 +0,0 @@
import { expect } from '@playwright/test';
import { test } from '@utils/test/playwright';
test.describe('title: basic', () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto('/src/components/title/test/basic');
const wrapper = page.locator('#header-wrapper');
// only screenshot the headers to avoid unnecessary blank space from ion-content
await expect(wrapper).toHaveScreenshot(`title-basic-${page.getSnapshotSettings()}.png`);
});
});

View File

@ -0,0 +1,14 @@
import { expect } from '@playwright/test';
import { configs, test } from '@utils/test/playwright';
configs().forEach(({ title, screenshot, config }) => {
test.describe(title('title: basic'), () => {
test('should not have visual regressions', async ({ page }) => {
await page.goto('/src/components/title/test/basic', config);
const wrapper = page.locator('#header-wrapper');
// only screenshot the headers to avoid unnecessary blank space from ion-content
await expect(wrapper).toHaveScreenshot(screenshot(`title-basic`));
});
});
});