mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(playwright): enable type checking (#25034)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { newE2EPage } from '@stencil/core/testing';
|
||||
import { AxePuppeteer } from '@axe-core/puppeteer';
|
||||
import { newE2EPage } from '@stencil/core/testing';
|
||||
|
||||
describe('toast accessibility tests', () => {
|
||||
test('it should not have any axe violations with polite toasts', async () => {
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { newE2EPage } from '@stencil/core/testing';
|
||||
|
||||
import { testToast } from '../test.utils';
|
||||
|
||||
const DIRECTORY = 'basic';
|
||||
@ -111,12 +112,12 @@ test('toast: htmlAttributes', async () => {
|
||||
await page.click('#show-bottom-toast');
|
||||
await page.waitForSelector('#show-bottom-toast');
|
||||
|
||||
let toast = await page.find('ion-toast');
|
||||
const toast = await page.find('ion-toast');
|
||||
|
||||
expect(toast).not.toBe(null);
|
||||
await toast.waitForVisible();
|
||||
|
||||
const attribute = await page.evaluate((el) => document.querySelector('ion-toast').getAttribute('data-testid'));
|
||||
const attribute = await page.evaluate(el => document.querySelector('ion-toast').getAttribute('data-testid'));
|
||||
|
||||
expect(attribute).toEqual('basic-toast');
|
||||
});
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { newE2EPage } from '@stencil/core/testing';
|
||||
|
||||
import { generateE2EUrl } from '@utils/test';
|
||||
|
||||
export const testToast = async (
|
||||
|
||||
Reference in New Issue
Block a user