From 06b9a75afa5a436fae1f8acf61cc21fb951dcb7d Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Wed, 14 Aug 2024 13:17:49 +0530 Subject: [PATCH 1/2] Fix failing BH dashboard help test --- tests/cypress/integration/help.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cypress/integration/help.cy.js b/tests/cypress/integration/help.cy.js index 90fb39024..7fa49acb7 100644 --- a/tests/cypress/integration/help.cy.js +++ b/tests/cypress/integration/help.cy.js @@ -26,7 +26,7 @@ describe( 'Help Page', function () { } ); it( 'Is Accessible', () => { - cy.checkA11y( '.wppbh-app-body' ); + cy.checkA11y( '.wppbh-app-body', { retries: 10 } ); } ); it( 'Phone Card Exists', () => { From be3675b753f96e8194397f80715ecfc8beafa8d9 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Wed, 14 Aug 2024 13:58:53 +0530 Subject: [PATCH 2/2] Add wait --- tests/cypress/integration/help.cy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/cypress/integration/help.cy.js b/tests/cypress/integration/help.cy.js index 7fa49acb7..54c12ca24 100644 --- a/tests/cypress/integration/help.cy.js +++ b/tests/cypress/integration/help.cy.js @@ -26,7 +26,9 @@ describe( 'Help Page', function () { } ); it( 'Is Accessible', () => { - cy.checkA11y( '.wppbh-app-body', { retries: 10 } ); + cy.injectAxe(); + cy.wait( 500 ); + cy.checkA11y( '.wppbh-app-body' ); } ); it( 'Phone Card Exists', () => {