listing.test.js 468 B

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