listing.test.js 494 B

1234567891011121314151617181920
  1. jest.setTimeout(30000);
  2. describe('Listing', () => {
  3. beforeAll(async () => {
  4. await page.goto(`${TEST_ORIGIN}/admin/pages/2/`);
  5. });
  6. it('has the right heading', async () => {
  7. expect(await page.title()).toContain(
  8. 'Exploring: Welcome to your new Wagtail site! - Wagtail',
  9. );
  10. });
  11. it('axe', async () => {
  12. await expect(page).toPassAxeTests({
  13. exclude:
  14. '.skiplink, .sidebar__collapse-toggle, #wagtail-sidebar, a[href$="dummy-button"]',
  15. });
  16. });
  17. });