Skip to content

Commit ca5d432

Browse files
committed
shorten creator name and ignore tag case
Signed-off-by: Jana Awada <jana.awada@scilifelab.uu.se>
1 parent e9145eb commit ca5d432

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cypress/e2e/integration-tests/test-deploy-app.cy.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ describe("Test deploying app", () => {
202202
const invalid_default_url_subpath = "€% / ()"
203203
const keyword = "Microscopy"
204204
const keyword_two = "COVID-19"
205-
const creator_firstname = "Somefirstname"
206-
const creator_lastname = "Somelastname"
205+
const creator_firstname = "First"
206+
const creator_lastname = "Last"
207207
const creator_affiliation = "Uppsala University"
208208
const funder_number = "0000-1234"
209209
const funder_org = "Swedish Research Council"
@@ -395,8 +395,8 @@ describe("Test deploying app", () => {
395395
cy.get('#id_language').should('have.value', 'swe')
396396
cy.get('#id_language').select('eng')
397397
// keywords
398-
cy.get('#div_id_invenio_tags .badge span').should('have.text', keyword.toLowerCase())
399-
cy.get('#div_id_invenio_tags .badge span').should('have.text', keyword.toLowerCase()).closest('.badge').find('.tag-remove-button').click()
398+
cy.get('#div_id_invenio_tags .badge span').should('have.text', keyword)
399+
cy.get('#div_id_invenio_tags .badge span').should('have.text', keyword).closest('.badge').find('.tag-remove-button').click()
400400
cy.get('#div_id_invenio_tags').should('be.visible')
401401
.within(() => {
402402
cy.get('input[placeholder*="Start typing"]').should('be.visible').type(keyword_two)
@@ -468,7 +468,7 @@ describe("Test deploying app", () => {
468468
cy.get('#id_image').should('have.value', image_name_2)
469469
cy.get('#id_mount_path').find(':selected').should('contain', mount_path_2)
470470
// The form tag renders the keyword in lowercase.
471-
cy.get('#div_id_invenio_tags .badge span').should('have.text', keyword_two.toLowerCase())
471+
cy.get('#div_id_invenio_tags .badge span').should('have.text', keyword_two)
472472
cy.get('#id_language').should('have.value', 'eng')
473473
cy.get('#creatorsSortableList').should('be.visible').children('li').should('have.length', 2)
474474
cy.get('#fundersList').should('be.visible').children().should('have.length', 2)

0 commit comments

Comments
 (0)