Skip to content

Commit

Permalink
skipping tests that rely on mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mukhamediyar Kudaikulov committed Jul 31, 2024
1 parent f2d3343 commit 61f7986
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/e2e/specs/dashboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ test.describe(`${process.env.E2E_TEST_ENV} - Breaches Dashboard - Navigation @sm
});

// These tests rely heavily on mocks
test.describe(`${process.env.E2E_TEST_ENV} - Breaches Dashboard - Data Breaches`, () => {
test.skip(`${process.env.E2E_TEST_ENV} - Breaches Dashboard - Data Breaches`, () => {
test.use({ storageState: { cookies: [], origins: [] } });

test("Verify that the High risk data breaches step is displayed correctly", async ({
Expand All @@ -736,13 +736,12 @@ test.describe(`${process.env.E2E_TEST_ENV} - Breaches Dashboard - Data Breaches`
landingPage,
authPage,
}) => {
if (!isUsingMockHIBPEndpoint() || !isUsingMockONEREPEndpoint()) return;
const emailToUse = process.env.E2E_TEST_ACCOUNT_EMAIL_EXPOSURES_STARTED!;
const pwdToUse = process.env.E2E_TEST_ACCOUNT_PASSWORD!;
expect(emailToUse).not.toBeUndefined();
expect(pwdToUse).not.toBeUndefined();
await forceLoginAs(emailToUse, pwdToUse, page, landingPage, authPage);

if (!isUsingMockHIBPEndpoint() || !isUsingMockONEREPEndpoint()) return;
await resetTestData(page, true, true);
await dashboardPage.open();

Expand Down

0 comments on commit 61f7986

Please sign in to comment.