From 8521447e43c3b215183793d619a0a53d954c0709 Mon Sep 17 00:00:00 2001 From: Gavin Reynolds Date: Tue, 5 Dec 2023 16:51:37 +0000 Subject: [PATCH] Enable Test Isolation for incidents.spec.js Signed-off-by: Gavin Reynolds --- cypress/e2e/Incidents/incidents.spec.js | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/cypress/e2e/Incidents/incidents.spec.js b/cypress/e2e/Incidents/incidents.spec.js index eb9b4e55c..810416c35 100644 --- a/cypress/e2e/Incidents/incidents.spec.js +++ b/cypress/e2e/Incidents/incidents.spec.js @@ -27,8 +27,9 @@ import { selectAlert, } from '../../support/util/common'; -describe('Manage Open Incidents', { failFast: { enabled: true } }, () => { - before(() => { +describe('Manage Open Incidents', { failFast: { enabled: true }, testIsolation: true }, () => { + // We use beforeEach as each test will reload/clear the session + beforeEach(() => { acceptDisclaimer(); const columns = [ ['Responders', 'responders'], @@ -41,23 +42,6 @@ describe('Manage Open Incidents', { failFast: { enabled: true } }, () => { waitForIncidentTable(); }); - // We use beforeEach as each test will reload/clear the session - beforeEach(() => { - // Handle failing tests by clearing cache - if (cy.state('test').currentRetry() > 1) { - acceptDisclaimer(); - const columns = [ - ['Responders', 'responders'], - ['Latest Log Entry Type', 'latest_log_entry_type'], - ]; - manageIncidentTableColumns( - 'add', - columns.map((column) => column[1]), - ); - } - waitForIncidentTable(); - }); - afterEach(() => { checkNoIncidentsSelected(); });