From 2897365a9017b7b02b93d8640da132ccbdaa57ef Mon Sep 17 00:00:00 2001 From: elisa lee Date: Fri, 13 Oct 2023 16:08:52 -0500 Subject: [PATCH] move loginhooks --- cypress/e2e/02-add_patient.cy.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/02-add_patient.cy.js b/cypress/e2e/02-add_patient.cy.js index 95ddf9ef942..c99ac0a9b0b 100644 --- a/cypress/e2e/02-add_patient.cy.js +++ b/cypress/e2e/02-add_patient.cy.js @@ -3,8 +3,11 @@ import { setupOrgAndFacility } from "../utils/setup-utils"; let patient= generatePatient(); let specName; describe("Adding a single patient", () => { - loginHooks(); before("store patient info", () => { + cy.clearCookies(); + cy.clearLocalStorageSnapshot(); + // Login to Okta to get an access token + !Cypress.env("SKIP_OKTA") && cy.login(); cy.task("getSpecName") .then((res) => { if (res) {