@@ -11,10 +11,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
11
11
await page . goto ( `/src/components/toast/test/a11y` , config ) ;
12
12
} ) ;
13
13
test ( 'should not have any axe violations with inline toasts' , async ( { page } ) => {
14
- const ionToastDidPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
14
+ const didPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
15
15
16
16
await page . click ( '#inline-toast-trigger' ) ;
17
- await ionToastDidPresent . next ( ) ;
17
+ await didPresent . next ( ) ;
18
18
19
19
/**
20
20
* IonToast overlays the entire screen, so
@@ -25,10 +25,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
25
25
expect ( results . violations ) . toEqual ( [ ] ) ;
26
26
} ) ;
27
27
test ( 'should not have any axe violations with controller toasts' , async ( { page } ) => {
28
- const ionToastDidPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
28
+ const didPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
29
29
30
30
await page . click ( '#controller-toast-trigger' ) ;
31
- await ionToastDidPresent . next ( ) ;
31
+ await didPresent . next ( ) ;
32
32
33
33
/**
34
34
* IonToast overlays the entire screen, so
@@ -42,10 +42,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
42
42
test ( 'should have aria-labelledby and aria-label added to the button when htmlAttributes is set' , async ( {
43
43
page,
44
44
} ) => {
45
- const ionToastDidPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
45
+ const didPresent = await page . spyOnEvent ( 'ionToastDidPresent' ) ;
46
46
47
47
await page . click ( '#aria-label-toast-trigger' ) ;
48
- await ionToastDidPresent . next ( ) ;
48
+ await didPresent . next ( ) ;
49
49
50
50
const toastButton = page . locator ( '#aria-label-toast .toast-button' ) ;
51
51
0 commit comments