Skip to content

Commit

Permalink
Enable Test Isolation for incidents.spec.js
Browse files Browse the repository at this point in the history
Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Dec 5, 2023
1 parent b7dcc9e commit 8521447
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions cypress/e2e/Incidents/incidents.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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();
});
Expand Down

0 comments on commit 8521447

Please sign in to comment.