@@ -3,7 +3,7 @@ import { configs, test } from '@utils/test/playwright';
33
44configs ( ) . forEach ( ( { title, screenshot, config } ) => {
55 test . describe ( title ( 'toast: stacked layout' ) , ( ) => {
6- test ( 'should render stacked buttons ' , async ( { page } ) => {
6+ test ( 'should render stacked toast ' , async ( { page } ) => {
77 await page . goto ( '/src/components/toast/test/layout' , config ) ;
88 const ionToastDidPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
99
@@ -13,5 +13,21 @@ configs().forEach(({ title, screenshot, config }) => {
1313 const toastWrapper = page . locator ( 'ion-toast .toast-wrapper' ) ;
1414 await expect ( toastWrapper ) . toHaveScreenshot ( screenshot ( `toast-stacked` ) ) ;
1515 } ) ;
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+ } ) ;
1632 } ) ;
1733} ) ;
0 commit comments