From 6103f92d1114f66d36ace07bcd81bf770b5e58c3 Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Thu, 12 May 2022 15:30:54 +0100 Subject: [PATCH] pkp/pkp-lib#7871 Update tests after removing country from locale names --- cypress/tests/data/20-CreateContext.spec.js | 2 +- cypress/tests/data/60-content/AmwandengaSubmission.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/tests/data/20-CreateContext.spec.js b/cypress/tests/data/20-CreateContext.spec.js index 959c3189557..514f0271901 100644 --- a/cypress/tests/data/20-CreateContext.spec.js +++ b/cypress/tests/data/20-CreateContext.spec.js @@ -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.'); diff --git a/cypress/tests/data/60-content/AmwandengaSubmission.spec.js b/cypress/tests/data/60-content/AmwandengaSubmission.spec.js index 290202e2f6e..14f4e9d9e61 100644 --- a/cypress/tests/data/60-content/AmwandengaSubmission.spec.js +++ b/cypress/tests/data/60-content/AmwandengaSubmission.spec.js @@ -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);