-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
76 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-3.18 KB
...lect.e2e.ts-snapshots/select-fill-shaped-outline-md-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-3.31 KB
...ect.e2e.ts-snapshots/select-fill-shaped-outline-md-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-2.9 KB
...lect.e2e.ts-snapshots/select-fill-shaped-outline-md-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-3.18 KB
...lect.e2e.ts-snapshots/select-fill-shaped-outline-md-rtl-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-3.32 KB
...ect.e2e.ts-snapshots/select-fill-shaped-outline-md-rtl-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-2.9 KB
...lect.e2e.ts-snapshots/select-fill-shaped-outline-md-rtl-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-2.01 KB
...select.e2e.ts-snapshots/select-fill-shaped-solid-md-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-2.2 KB
...elect.e2e.ts-snapshots/select-fill-shaped-solid-md-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-1.71 KB
...select.e2e.ts-snapshots/select-fill-shaped-solid-md-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-1.99 KB
...select.e2e.ts-snapshots/select-fill-shaped-solid-md-rtl-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-2.23 KB
...elect.e2e.ts-snapshots/select-fill-shaped-solid-md-rtl-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-1.71 KB
...select.e2e.ts-snapshots/select-fill-shaped-solid-md-rtl-Mobile-Safari-linux.png
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import { expect } from '@playwright/test'; | ||
import { configs, test } from '@utils/test/playwright'; | ||
|
||
/** | ||
* This behavior does not vary across directions. | ||
*/ | ||
configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ config, screenshot, title }) => { | ||
test.describe(title('select: shape'), () => { | ||
['soft', 'round', 'rectangular'].forEach((shape) => { | ||
test(`${shape} - should not have visual regressions with outline fill`, async ({ page }) => { | ||
await page.setContent( | ||
` | ||
<ion-select | ||
shape="${shape}" | ||
fill="outline" | ||
label="Label" | ||
label-placement="stacked" | ||
value="filledText" | ||
> | ||
<ion-select-option value="filledText">Filled text</ion-select-option> | ||
</ion-select> | ||
`, | ||
config | ||
); | ||
|
||
const select = page.locator('ion-select'); | ||
|
||
await expect(select).toHaveScreenshot(screenshot(`select-shape-${shape}-fill-outline`)); | ||
}); | ||
}); | ||
}); | ||
}); | ||
|
||
configs({ modes: ['md'] }).forEach(({ config, screenshot, title }) => { | ||
test.describe(title('select: shape'), () => { | ||
test('round - should not have visual regressions with outline fill', async ({ page }) => { | ||
await page.setContent( | ||
` | ||
<ion-select | ||
shape="round" | ||
fill="outline" | ||
label="Label" | ||
label-placement="stacked" | ||
value="filledText" | ||
> | ||
<ion-select-option value="filledText">Filled text</ion-select-option> | ||
</ion-select> | ||
`, | ||
config | ||
); | ||
|
||
const select = page.locator('ion-select'); | ||
await expect(select).toHaveScreenshot(screenshot(`select-shape-round-fill-outline`)); | ||
}); | ||
|
||
test('round - should not have visual regressions with solid fill', async ({ page }) => { | ||
await page.setContent( | ||
` | ||
<ion-select | ||
shape="round" | ||
fill="solid" | ||
label="Label" | ||
label-placement="stacked" | ||
value="filledText" | ||
> | ||
<ion-select-option value="filledText">Filled text</ion-select-option> | ||
</ion-select> | ||
`, | ||
config | ||
); | ||
|
||
const select = page.locator('ion-select'); | ||
await expect(select).toHaveScreenshot(screenshot(`select-shape-round-fill-solid`)); | ||
}); | ||
}); | ||
}); |
Binary file added
BIN
+1.84 KB
...elect-shape-rectangular-fill-outline-ionic-md-ltr-light-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.57 KB
...lect-shape-rectangular-fill-outline-ionic-md-ltr-light-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.74 KB
...elect-shape-rectangular-fill-outline-ionic-md-ltr-light-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.57 KB
...hots/select-shape-round-fill-outline-ionic-md-ltr-light-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.29 KB
...ots/select-shape-round-fill-outline-ionic-md-ltr-light-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.58 KB
...hots/select-shape-round-fill-outline-ionic-md-ltr-light-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.03 KB
...e2e.ts-snapshots/select-shape-round-fill-outline-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.59 KB
...2e.ts-snapshots/select-shape-round-fill-outline-md-ltr-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3 KB
...e2e.ts-snapshots/select-shape-round-fill-outline-md-ltr-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.02 KB
...e2e.ts-snapshots/select-shape-round-fill-outline-md-rtl-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.58 KB
...2e.ts-snapshots/select-shape-round-fill-outline-md-rtl-Mobile-Firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3 KB
...e2e.ts-snapshots/select-shape-round-fill-outline-md-rtl-Mobile-Safari-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.03 KB
...t.e2e.ts-snapshots/select-shape-round-fill-solid-md-ltr-Mobile-Chrome-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.67 KB
....e2e.ts-snapshots/select-shape-round-fill-solid-md-ltr-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.94 KB
...t.e2e.ts-snapshots/select-shape-round-fill-solid-md-ltr-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.02 KB
...t.e2e.ts-snapshots/select-shape-round-fill-solid-md-rtl-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.64 KB
....e2e.ts-snapshots/select-shape-round-fill-solid-md-rtl-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+1.95 KB
...t.e2e.ts-snapshots/select-shape-round-fill-solid-md-rtl-Mobile-Safari-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.19 KB
...shots/select-shape-soft-fill-outline-ionic-md-ltr-light-Mobile-Chrome-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.93 KB
...hots/select-shape-soft-fill-outline-ionic-md-ltr-light-Mobile-Firefox-linux.png
Oops, something went wrong.
Binary file added
BIN
+2.14 KB
...shots/select-shape-soft-fill-outline-ionic-md-ltr-light-Mobile-Safari-linux.png
Oops, something went wrong.