Newer
Older
import {newE2EPage} from '@stencil/core/testing';
//import { AxePuppeteer } from "axe-puppeteer";
//import { Page } from "puppeteer";
describe('link element', () => {
it('link passes axe a11y tests', async () => {
const page = await newE2EPage();
await page.setContent(`<hy-link href='#'>Hello</hy-link>`);
const results = await new AxePuppeteer((page as any) as Page)
.include("hy-link")
.analyze();
expect(results.violations).toHaveLength(0);