Skip to content

Commit

Permalink
Fix tests for downstream usage
Browse files Browse the repository at this point in the history
Issue: AAH-3137
  • Loading branch information
obaranov committed Mar 8, 2024
1 parent f6cb909 commit 51d12a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ Cypress.Commands.add('galaxykit', {}, (operation, ...args) => {
return cy.exec(cmd, options).then(({ code, stderr, stdout }) => {
console.log(`RUN ${cmd}`, options, { code, stderr, stdout });

if (code || stderr) {
if (code) {
cy.log('galaxykit code: ' + code);
cy.log('galaxykit stderr: ' + stderr);
return Promise.reject(new Error(`Galaxykit failed: ${stderr}`));
Expand Down
5 changes: 4 additions & 1 deletion test/cypress/support/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ function apiLogin(username, password, url = '/', title = 'Collections') {
method: 'POST',
url: loginUrl,
body: { username, password },
headers: { 'X-CSRFToken': csrftoken.value },
headers: {
'X-CSRFToken': csrftoken.value,
Referer: Cypress.config().baseUrl,
},
});
});
});
Expand Down

0 comments on commit 51d12a8

Please sign in to comment.