mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore(playwright): enable type checking (#25034)
This commit is contained in:
@ -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 () => {
|
||||
|
||||
@ -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({
|
||||
|
||||
Reference in New Issue
Block a user