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,8 +1,8 @@
import { newE2EPage } from '@stencil/core/testing';
const getActiveElementText = async (page) => {
const getActiveElementText = async page => {
const activeElement = await page.evaluateHandle(() => document.activeElement);
return await page.evaluate(el => el && el.innerText, activeElement);
return page.evaluate(el => el && el.innerText, activeElement);
}
test('accordion: a11y', async () => {

View File

@ -1,5 +1,5 @@
import { newE2EPage } from '@stencil/core/testing';
import { AxePuppeteer } from '@axe-core/puppeteer';
import { newE2EPage } from '@stencil/core/testing';
test('accordion: axe', async () => {
const page = await newE2EPage({