mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-25 13:10:14 +01:00
a88a775aea
- Remove the integration test for this element as it was failing even though the element has valid content. - Fixes #11372
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
describe('Homepage', () => {
|
|
beforeAll(async () => {
|
|
await page.goto(`${TEST_ORIGIN}/admin/`, {
|
|
waitUntil: 'domcontentloaded',
|
|
});
|
|
});
|
|
|
|
it('has the right heading', async () => {
|
|
const pageHeader = await page.$('h1');
|
|
const pageHeaderValue = await pageHeader.evaluate((el) => el.textContent);
|
|
expect(pageHeaderValue).toContain('Welcome to the Test Site Wagtail CMS');
|
|
});
|
|
|
|
it('axe', async () => {
|
|
await expect(page).toPassAxeTests({
|
|
exclude: '.stats, .skiplink, #wagtail-sidebar, .sidebar__collapse-toggle',
|
|
});
|
|
});
|
|
|
|
it('axe page explorer', async () => {
|
|
const trigger = await page.$(
|
|
'.sidebar-page-explorer-item [aria-haspopup="dialog"]',
|
|
);
|
|
await trigger.click();
|
|
await expect(page).toPassAxeTests({
|
|
include: '.sidebar-main-menu',
|
|
});
|
|
});
|
|
|
|
it('axe sidebar sub-menu', async () => {
|
|
const trigger = await page.$(
|
|
'.sidebar-sub-menu-item [aria-haspopup="menu"]',
|
|
);
|
|
await trigger.click();
|
|
await expect(page).toPassAxeTests({
|
|
include: '.sidebar-main-menu',
|
|
});
|
|
});
|
|
});
|