Skip to content

Commit 26db121

Browse files
authored
fix(toast): add initial opacity based on mode (#30042)
1 parent ff93af7 commit 26db121

12 files changed

+55
-21
lines changed

core/src/components/toast/test/basic/toast.e2e.ts

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,34 @@ class ToastFixture {
4747
/**
4848
* This behavior does not vary across directions.
4949
*/
50-
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
51-
test.describe(title('toast: position rendering'), () => {
52-
let toastFixture: ToastFixture;
53-
test.beforeEach(async ({ page }) => {
54-
toastFixture = new ToastFixture(page);
55-
await toastFixture.goto(config);
56-
});
57-
test('should render toast at the top', async () => {
58-
await toastFixture.openToast('#show-top-toast');
59-
await toastFixture.screenshot('top', screenshot);
60-
});
61-
test('should render toast at the middle', async () => {
62-
await toastFixture.openToast('#show-middle-toast');
63-
await toastFixture.screenshot('middle', screenshot);
64-
});
65-
test('should render toast at the bottom', async () => {
66-
await toastFixture.openToast('#show-bottom-toast');
67-
await toastFixture.screenshot('bottom', screenshot);
50+
configs({ modes: ['ios', 'md', 'ionic-md', 'ionic-ios'], directions: ['ltr'] }).forEach(
51+
({ title, screenshot, config }) => {
52+
test.describe(title('toast: position rendering'), () => {
53+
let toastFixture: ToastFixture;
54+
test.beforeEach(async ({ page }) => {
55+
toastFixture = new ToastFixture(page);
56+
await toastFixture.goto(config);
57+
});
58+
test('should render toast at the top', async () => {
59+
await toastFixture.openToast('#show-top-toast');
60+
await toastFixture.screenshot('top', screenshot);
61+
});
62+
test('should render toast at the middle', async () => {
63+
await toastFixture.openToast('#show-middle-toast');
64+
await toastFixture.screenshot('middle', screenshot);
65+
});
66+
test('should render toast at the bottom', async () => {
67+
await toastFixture.openToast('#show-bottom-toast');
68+
await toastFixture.screenshot('bottom', screenshot);
69+
});
6870
});
69-
});
71+
}
72+
);
73+
74+
/**
75+
* This behavior does not vary across directions.
76+
*/
77+
configs({ modes: ['ios', 'md', 'ionic-md'], directions: ['ltr'] }).forEach(({ title, screenshot, config }) => {
7078
test.describe(title('toast: color rendering'), () => {
7179
test('should set color correctly', async ({ page }) => {
7280
const toastFixture = new ToastFixture(page);
30.3 KB
Loading
43.1 KB
Loading
28 KB
Loading
33.1 KB
Loading
47.2 KB
Loading
29.1 KB
Loading
32.5 KB
Loading
46.2 KB
Loading
28.6 KB
Loading

0 commit comments

Comments
 (0)