0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/client/tests/integration/groups.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

16 lines
401 B
JavaScript

describe('Groups', () => {
beforeAll(async () => {
await page.goto(`${TEST_ORIGIN}/admin/groups/2/`);
}, 10000);
it('has the right heading', async () => {
expect(await page.title()).toContain('Editing Editors - Wagtail');
});
it('axe', async () => {
await expect(page).toPassAxeTests({
exclude: '.skiplink, .sidebar__collapse-toggle, #wagtail-sidebar',
});
});
});