diff --git a/core/src/components/toast/test/a11y/toast.e2e.ts b/core/src/components/toast/test/a11y/toast.e2e.ts index f02c7b4bb96..daeead6a650 100644 --- a/core/src/components/toast/test/a11y/toast.e2e.ts +++ b/core/src/components/toast/test/a11y/toast.e2e.ts @@ -11,10 +11,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => { await page.goto(`/src/components/toast/test/a11y`, config); }); test('should not have any axe violations with inline toasts', async ({ page }) => { - const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent'); + const didPresent = await page.spyOnEvent('ionToastDidPresent'); await page.click('#inline-toast-trigger'); - await ionToastDidPresent.next(); + await didPresent.next(); /** * IonToast overlays the entire screen, so @@ -25,10 +25,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => { expect(results.violations).toEqual([]); }); test('should not have any axe violations with controller toasts', async ({ page }) => { - const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent'); + const didPresent = await page.spyOnEvent('ionToastDidPresent'); await page.click('#controller-toast-trigger'); - await ionToastDidPresent.next(); + await didPresent.next(); /** * IonToast overlays the entire screen, so @@ -42,10 +42,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => { test('should have aria-labelledby and aria-label added to the button when htmlAttributes is set', async ({ page, }) => { - const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent'); + const didPresent = await page.spyOnEvent('ionToastDidPresent'); await page.click('#aria-label-toast-trigger'); - await ionToastDidPresent.next(); + await didPresent.next(); const toastButton = page.locator('#aria-label-toast .toast-button');