Skip to content

Commit

Permalink
move loginhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
emyl3 committed Oct 13, 2023
1 parent ce3f149 commit 2897365
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cypress/e2e/02-add_patient.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2897365

Please sign in to comment.