Skip to content

Commit

Permalink
pkp/pkp-lib#9214 Add github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Aug 9, 2023
1 parent dec5e1b commit 6f59c78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Cypress.Commands.add('checkViewableGalley', (galleyTitle) => {
});

Cypress.Commands.add('createSubmissionWithApi', (data, 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.beginSubmissionWithApi(api, data, csrfToken)
.putMetadataWithApi(data, csrfToken)
Expand Down
10 changes: 5 additions & 5 deletions cypress/tests/integration/SubmissionWizard.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ describe('Submission Wizard', function() {
});

it('When a copyright notice is configured in the context, it appears in the review step of the submission wizard and I am unable to submit without checking its checkbox.', function() {
const api = new Api(Cypress.env('baseUrl') + '/index.php/publicknowledge/api/v1');
const api = new Api(Cypress.config('baseUrl') + '/index.php/publicknowledge/api/v1');
const title = 'Et malesuada fames ac turpis';
const copyrightNotice = {
en: 'Turpis massa tincidunt dui ut ornare.',
Expand Down Expand Up @@ -309,7 +309,7 @@ describe('Submission Wizard', function() {
];

// Require all submission wizard fields
const api = new Api(Cypress.env('baseUrl') + '/index.php/publicknowledge/api/v1');
const api = new Api(Cypress.config('baseUrl') + '/index.php/publicknowledge/api/v1');
cy.login('dbarnes', null, 'publicknowledge');
cy.getCsrfToken()
.then(() => {
Expand Down Expand Up @@ -446,7 +446,7 @@ describe('Submission Wizard', function() {
it('I can change the submission language to a different language from the language I am using the site, and the submission forms and validation checks are applied to the language of the submission', function() {

// Enable all submission wizard fields
const api = new Api(Cypress.env('baseUrl') + '/index.php/publicknowledge/api/v1');
const api = new Api(Cypress.config('baseUrl') + '/index.php/publicknowledge/api/v1');
cy.login('dbarnes', null, 'publicknowledge');
cy.getCsrfToken()
.then(() => {
Expand Down Expand Up @@ -612,7 +612,7 @@ describe('Submission Wizard', function() {
it('Resets the submission wizard fields to more common configuration', function() {

// Reset all submission wizard fields
const api = new Api(Cypress.env('baseUrl') + '/index.php/publicknowledge/api/v1');
const api = new Api(Cypress.config('baseUrl') + '/index.php/publicknowledge/api/v1');
cy.login('dbarnes', null, 'publicknowledge');
cy.getCsrfToken()
.then(() => {
Expand Down Expand Up @@ -641,4 +641,4 @@ describe('Submission Wizard', function() {
expect(xhr.status).to.eq(200);
});
});
})
})

0 comments on commit 6f59c78

Please sign in to comment.