Skip to content

Commit 1d58e62

Browse files
CR
1 parent 25ea863 commit 1d58e62

21 files changed

+30
-9
lines changed

core/src/components/toast/test/shape/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727

2828
<ion-content class="ion-padding" id="content">
2929
(Only available for ionic theme)
30+
<button
31+
class="expand"
32+
id="default-toast"
33+
onclick="openToast({ message: 'Hello, world!', duration: 2000 })"
34+
>
35+
Default Toast
36+
</button>
37+
3038
<button
3139
class="expand"
3240
id="soft-shape-toast"

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,24 @@ configs({ modes: ['ionic-md'], directions: ['ltr'] }).forEach(({ config, screens
5555
await toastFixture.goto(config);
5656
});
5757

58+
test('should render the default toast', async () => {
59+
await toastFixture.openToast('#default-toast');
60+
await toastFixture.screenshot('shape-round', screenshot);
61+
});
62+
5863
test('should render a soft toast', async () => {
5964
await toastFixture.openToast('#soft-shape-toast');
60-
await toastFixture.screenshot('soft', screenshot);
65+
await toastFixture.screenshot('shape-soft', screenshot);
6166
});
6267

6368
test('should render a round toast', async () => {
6469
await toastFixture.openToast('#round-shape-toast');
65-
await toastFixture.screenshot('round', screenshot);
70+
await toastFixture.screenshot('shape-round', screenshot);
6671
});
6772

6873
test('should render a rectangular toast', async () => {
6974
await toastFixture.openToast('#rect-shape-toast');
70-
await toastFixture.screenshot('rect', screenshot);
75+
await toastFixture.screenshot('shape-rectangular', screenshot);
7176
});
7277
});
7378
});
17.2 KB
Loading
26.1 KB
Loading

0 commit comments

Comments
 (0)