@@ -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 ) ;
0 commit comments