Skip to content

Commit

Permalink
test(toast): consistent didPresent naming with other a11y tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Jul 26, 2023
1 parent 1b59994 commit 1643966
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/components/toast/test/a11y/toast.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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');

Expand Down

0 comments on commit 1643966

Please sign in to comment.