Skip to content

Commit

Permalink
chore: use old login for v41
Browse files Browse the repository at this point in the history
  • Loading branch information
JoakimSM committed Apr 26, 2024
1 parent dd775e6 commit 86c4103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Cypress.Commands.add('forceVisit', (url) => {
Cypress.Commands.add('loginByApi', ({ username, password, baseUrl }) => {
const currentInstanceVersion = Number(/[.](\d+)/.exec(Cypress.env('dhis2InstanceVersion'))[1]);

if (currentInstanceVersion >= 41) {
if (currentInstanceVersion >= 42) {
cy.request({
url: `${baseUrl}/api/auth/login`,
method: 'POST',
Expand Down

0 comments on commit 86c4103

Please sign in to comment.