Browse Source

Set timeouts of 30 seconds for axe tests

Matt Westcott 7 months ago
parent
commit
482f5a0ec7

+ 2 - 0
client/tests/integration/editor.test.js

@@ -1,3 +1,5 @@
+jest.setTimeout(30000);
+
 describe('Editor', () => {
   const globalEditorExcludes =
     '.skiplink, .sidebar__collapse-toggle, #wagtail-sidebar, li[aria-controls^="tab-"]';

+ 3 - 1
client/tests/integration/groups.test.js

@@ -1,7 +1,9 @@
+jest.setTimeout(30000);
+
 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');

+ 2 - 0
client/tests/integration/homepage.test.js

@@ -1,3 +1,5 @@
+jest.setTimeout(30000);
+
 describe('Homepage', () => {
   beforeAll(async () => {
     await page.goto(`${TEST_ORIGIN}/admin/`, {

+ 2 - 0
client/tests/integration/listing.test.js

@@ -1,3 +1,5 @@
+jest.setTimeout(30000);
+
 describe('Listing', () => {
   beforeAll(async () => {
     await page.goto(`${TEST_ORIGIN}/admin/pages/2/`);

+ 2 - 0
client/tests/integration/users.test.js

@@ -1,3 +1,5 @@
+jest.setTimeout(30000);
+
 describe('Users', () => {
   beforeAll(async () => {
     await page.goto(`${TEST_ORIGIN}/admin/users/`);