wagtail/client/tests/integration/listing.test.js

16 wiersze
446 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('Wagtail - Exploring Welcome to your new Wagtail site!');
});
it('axe', async () => {
await expect(page).toPassAxeTests({
exclude: '.skiplink, .sidebar__collapse-toggle, #wagtail-sidebar, a[href$="dummy-button"]'
});
});
});