0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 01:22:07 +01:00
wagtail/client/tests/integration/listing.test.js
Mehrdad Moradizadeh a0f038af14 move branding_title to the end of page title
Ensure the title of the Web page first identifies the topic of the page, then shows the group name followed by the name of the parent organisation.
* fixes #9054
* https://www.w3.org/WAI/WCAG21/Techniques/general/G88
* https://www.w3.org/WAI/WCAG21/Understanding/page-titled.html
2022-08-31 22:10:57 +10:00

19 lines
468 B
JavaScript

describe('Listing', () => {
beforeAll(async () => {
await page.goto(`${TEST_ORIGIN}/admin/pages/2/`);
});
it('has the right heading', async () => {
expect(await page.title()).toContain(
'Exploring Welcome to your new Wagtail site! - Wagtail',
);
});
it('axe', async () => {
await expect(page).toPassAxeTests({
exclude:
'.skiplink, .sidebar__collapse-toggle, #wagtail-sidebar, a[href$="dummy-button"]',
});
});
});