chore(playwright): enable type checking (#25034)

This commit is contained in:
Sean Perkins
2022-03-31 15:42:09 -04:00
committed by GitHub
parent 0aa6d124d6
commit 2af24494f5
63 changed files with 163 additions and 173 deletions

View File

@ -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 () => {

View File

@ -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');
});

View File

@ -1,5 +1,4 @@
import { newE2EPage } from '@stencil/core/testing';
import { generateE2EUrl } from '@utils/test';
export const testToast = async (