chore(): sync with main
@ -9,7 +9,7 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const labelEl = page.locator('ion-label');
|
||||
|
||||
expect(await labelEl.screenshot()).toMatchSnapshot(`label-basic-${page.getSnapshotSettings()}.png`);
|
||||
await expect(labelEl).toHaveScreenshot(`label-basic-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should not have visual regressions with fixed label', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -20,7 +20,7 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const itemEl = page.locator('ion-item');
|
||||
|
||||
expect(await itemEl.screenshot()).toMatchSnapshot(`label-fixed-${page.getSnapshotSettings()}.png`);
|
||||
await expect(itemEl).toHaveScreenshot(`label-fixed-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should not have visual regressions with stacked label', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -32,7 +32,7 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const itemEl = page.locator('ion-item');
|
||||
|
||||
expect(await itemEl.screenshot()).toMatchSnapshot(`label-stacked-${page.getSnapshotSettings()}.png`);
|
||||
await expect(itemEl).toHaveScreenshot(`label-stacked-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should not have visual regressions with floating label', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -44,6 +44,6 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const itemEl = page.locator('ion-item');
|
||||
|
||||
expect(await itemEl.screenshot()).toMatchSnapshot(`label-floating-${page.getSnapshotSettings()}.png`);
|
||||
await expect(itemEl).toHaveScreenshot(`label-floating-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 1.1 KiB |
@ -10,7 +10,7 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const item = page.locator('ion-item');
|
||||
|
||||
expect(await item.screenshot()).toMatchSnapshot(`item-color-inherit-${page.getSnapshotSettings()}.png`);
|
||||
await expect(item).toHaveScreenshot(`item-color-inherit-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should set color directly', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -19,7 +19,7 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const labelEl = page.locator('ion-label');
|
||||
|
||||
expect(await labelEl.screenshot()).toMatchSnapshot(`label-color-${page.getSnapshotSettings()}.png`);
|
||||
await expect(labelEl).toHaveScreenshot(`label-color-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should use contrast color when color is set on item', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -30,7 +30,7 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const labelEl = page.locator('ion-label');
|
||||
|
||||
expect(await labelEl.screenshot()).toMatchSnapshot(`label-color-contrast-${page.getSnapshotSettings()}.png`);
|
||||
await expect(labelEl).toHaveScreenshot(`label-color-contrast-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
test('should override color even if color set on item', async ({ page }) => {
|
||||
await page.setContent(`
|
||||
@ -41,6 +41,6 @@ test.describe('label: rendering', () => {
|
||||
|
||||
const labelEl = page.locator('ion-label');
|
||||
|
||||
expect(await labelEl.screenshot()).toMatchSnapshot(`label-color-override-${page.getSnapshotSettings()}.png`);
|
||||
await expect(labelEl).toHaveScreenshot(`label-color-override-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.2 KiB |
@ -8,6 +8,6 @@ test.describe('label: rendering', () => {
|
||||
test('should inherit text overflow for headings', async ({ page }) => {
|
||||
await page.goto(`/src/components/label/test/headings`);
|
||||
|
||||
expect(await page.screenshot()).toMatchSnapshot(`item-headings-inherit-${page.getSnapshotSettings()}.png`);
|
||||
await expect(page).toHaveScreenshot(`item-headings-inherit-${page.getSnapshotSettings()}.png`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 33 KiB |