Skip to content

Commit c0e719e

Browse files
committed
test(toast): consistent didPresent naming with other a11y tests
1 parent 7429775 commit c0e719e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/components/toast/test/a11y/toast.e2e.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
1111
await page.goto(`/src/components/toast/test/a11y`, config);
1212
});
1313
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');
1515

1616
await page.click('#inline-toast-trigger');
17-
await ionToastDidPresent.next();
17+
await didPresent.next();
1818

1919
/**
2020
* IonToast overlays the entire screen, so
@@ -25,10 +25,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
2525
expect(results.violations).toEqual([]);
2626
});
2727
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');
2929

3030
await page.click('#controller-toast-trigger');
31-
await ionToastDidPresent.next();
31+
await didPresent.next();
3232

3333
/**
3434
* IonToast overlays the entire screen, so
@@ -42,10 +42,10 @@ configs({ directions: ['ltr'] }).forEach(({ title, config }) => {
4242
test('should have aria-labelledby and aria-label added to the button when htmlAttributes is set', async ({
4343
page,
4444
}) => {
45-
const ionToastDidPresent = await page.spyOnEvent('ionToastDidPresent');
45+
const didPresent = await page.spyOnEvent('ionToastDidPresent');
4646

4747
await page.click('#aria-label-toast-trigger');
48-
await ionToastDidPresent.next();
48+
await didPresent.next();
4949

5050
const toastButton = page.locator('#aria-label-toast .toast-button');
5151

0 commit comments

Comments
 (0)