Skip to content

Commit

Permalink
pkp/pkp-lib#7871 Update tests after removing country from locale names
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed May 12, 2022
1 parent 75c8a73 commit 6103f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/tests/data/20-CreateContext.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Data suite tests', function() {

// Fill in various details
cy.wait(1000); // https://github.com/tinymce/tinymce/issues/4355
cy.get('div[id=editContext]').find('button[label="French (Canada)"]').click();
cy.get('div[id=editContext]').find('button[label="French"]').click();
cy.get('input[name="name-fr_CA"]').type(Cypress.env('contextTitles')['fr_CA'], {delay: 0});
cy.get('button').contains('Save').click()
cy.get('div[id=context-name-error-en_US]').find('span').contains('This field is required.');
Expand Down
2 changes: 1 addition & 1 deletion cypress/tests/data/60-content/AmwandengaSubmission.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Data suite tests', function() {
cy.get('#titleAbstract input[name=subtitle-en_US]').click();
cy.get('#titleAbstract button').contains('Save').click();

cy.get('#titleAbstract [id*=title-error-en_US]').find('span').contains('You must complete this field in English (United States).');
cy.get('#titleAbstract [id*=title-error-en_US]').find('span').contains('You must complete this field in English.');
cy.get('#titleAbstract [id*=abstract-error-en_US]').find('span').contains('The abstract is too long.');
cy.get('#titleAbstract input[name=title-en_US').type(submission.title, {delay: 0});
cy.setTinyMceContent('titleAbstract-abstract-control-en_US', submission.abstract);
Expand Down

0 comments on commit 6103f92

Please sign in to comment.