@@ -3,7 +3,7 @@ import { configs, test } from '@utils/test/playwright';
|
3 | 3 | |
4 | 4 | configs().forEach(({ title, screenshot, config }) => { |
5 | 5 | test.describe(title('toast: stacked layout'), () => { |
6 | | -test('should render stacked buttons', async ({ page }) => { |
| 6 | +test('should render stacked toast', async ({ page }) => { |
7 | 7 | await page.goto('/src/components/toast/test/layout', config); |
8 | 8 | const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent'); |
9 | 9 | |
@@ -13,5 +13,21 @@ configs().forEach(({ title, screenshot, config }) => {
|
13 | 13 | const toastWrapper = page.locator('ion-toast .toast-wrapper'); |
14 | 14 | await expect(toastWrapper).toHaveScreenshot(screenshot(`toast-stacked`)); |
15 | 15 | }); |
| 16 | + |
| 17 | +test('should render stacked toast with long message', async ({ page }, testInfo) => { |
| 18 | +testInfo.annotations.push({ |
| 19 | +type: 'issue', |
| 20 | +description: 'https://github.com/ionic-team/ionic-framework/issues/30908', |
| 21 | +}); |
| 22 | + |
| 23 | +await page.goto('/src/components/toast/test/layout', config); |
| 24 | +const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent'); |
| 25 | + |
| 26 | +await page.click('#stacked-long-message'); |
| 27 | +await ionToastDidPresent.next(); |
| 28 | + |
| 29 | +const toastWrapper = page.locator('ion-toast .toast-wrapper'); |
| 30 | +await expect(toastWrapper).toHaveScreenshot(screenshot(`toast-stacked-long-message`)); |
| 31 | +}); |
16 | 32 | }); |
17 | 33 | }); |