Skip to content

Commit

Permalink
Update cypress/support/utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Jul 19, 2021
1 parent c99aadf commit c0d43d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cypress/support/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const getAuthToken = () =>
.its("auth")
.its("token")
.then(token => `Token ${token}`);
export const getDictionaryId = () => dictionaryId;
export const setDictionaryId = (dictId: string) => dictionaryId = dictId;
export const getUser = () => user;
export const getOrganisationId = () => organisationId;
export const setOrganisationId = (orgId: string) => organisationId = orgId;
export const getDictionaryId = () => Cypress.env("dictionaryId");
export const setDictionaryId = (dictionaryId: string) => Cypress.env("dictionaryId", dictionaryId);
export const getUser () => Cypress.env("USER") || "admin";
export const getOrganisationId = () => Cypress.env("organisationId");
export const setOrganisationId = (organisationId: string) => Cypress.env("organisationId", organisationId);

0 comments on commit c0d43d3

Please sign in to comment.