Skip to content

Commit

Permalink
pkp#9214 Cypress move Cypress.env('baseUrl') to Cypress.config('baseU…
Browse files Browse the repository at this point in the history
…rl')
  • Loading branch information
withanage committed Aug 8, 2023
1 parent b802e3e commit 61d33ca
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 @@ -284,7 +284,7 @@ Cypress.Commands.add('addSubmissionAuthorsWithApi', (api, data, csrfToken) => {
});

Cypress.Commands.add('submitSubmissionWithApi', (id, csrfToken) => {
const api = new Api(Cypress.env('baseUrl') + '/index.php/publicknowledge/api/v1');
const api = new Api(Cypress.config('baseUrl') + '/index.php/publicknowledge/api/v1');
return cy.get('@submissionId').then((submissionId) => {
cy.request({
url: api.submit(submissionId),
Expand Down

0 comments on commit 61d33ca

Please sign in to comment.