Skip to content

Commit b70329a

Browse files
[PRMP-1222] add odsCode as parameter to cypress smokeLogin (#999)
1 parent 4d10c2d commit b70329a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/cypress/support/e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ Cypress.Commands.add('login', (role, featureFlags) => {
7373
cy.wait('@featureFlags');
7474
});
7575

76-
Cypress.Commands.add('smokeLogin', (role) => {
76+
Cypress.Commands.add('smokeLogin', (role, odsCode = 'H81109') => {
7777
const baseUrl = Cypress.config('baseUrl');
7878
const key = Cypress.env('KEY');
79-
const odsCode = Cypress.env('ODSCODE');
8079

8180
const startUrl = '/';
8281
cy.visit(startUrl);
@@ -145,8 +144,9 @@ declare global {
145144
/**
146145
* Real user login via CIS2 and redirect back to {baseUrl}/auth-callback.
147146
* @param {Roles} role - The user role to login with. Must be an enum of Roles
147+
* @param {string} odsCode - The ODS code to use for login. Defaults to 'H81109'
148148
*/
149-
smokeLogin(role: RoleKey | RoleId | string): Chainable<void>;
149+
smokeLogin(role: RoleKey | RoleId | string, odsCode?: string): Chainable<void>;
150150
/**
151151
* Add file to s3 bucket
152152
* @param {string} bucketName - Name of the target S3 bucket

0 commit comments

Comments
 (0)