From 2e298ffc1155c86a2f1f6da0c0f9b1be09333cf5 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 24 May 2024 15:04:51 +0200 Subject: [PATCH] fix(i18n): adjust tests from 34780daab0af0c088d6484d5fa0ddfba01471e8b --- .../cypress/e2e/project/project-view-list.spec.ts | 2 +- frontend/cypress/e2e/sharing/linkShare.spec.ts | 4 ++-- frontend/cypress/e2e/sharing/team.spec.ts | 4 ++-- frontend/cypress/e2e/task/task.spec.ts | 14 +++++++------- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/cypress/e2e/project/project-view-list.spec.ts b/frontend/cypress/e2e/project/project-view-list.spec.ts index 1cb6f0c94..5effab8de 100644 --- a/frontend/cypress/e2e/project/project-view-list.spec.ts +++ b/frontend/cypress/e2e/project/project-view-list.spec.ts @@ -68,7 +68,7 @@ describe('Project View List', () => { cy.get('.project-title-wrapper .icon') .should('not.exist') - cy.get('input.input[placeholder="Add a new task..."') + cy.get('input.input[placeholder="Add a task..."') .should('not.exist') }) diff --git a/frontend/cypress/e2e/sharing/linkShare.spec.ts b/frontend/cypress/e2e/sharing/linkShare.spec.ts index ffb6ea3a7..99c74b62b 100644 --- a/frontend/cypress/e2e/sharing/linkShare.spec.ts +++ b/frontend/cypress/e2e/sharing/linkShare.spec.ts @@ -27,7 +27,7 @@ describe('Link shares', () => { cy.get('h1.title') .should('contain', project.title) - cy.get('input.input[placeholder="Add a new task..."') + cy.get('input.input[placeholder="Add a task..."') .should('not.exist') cy.get('.tasks') .should('contain', tasks[0].title) @@ -42,7 +42,7 @@ describe('Link shares', () => { cy.get('h1.title') .should('contain', project.title) - cy.get('input.input[placeholder="Add a new task..."') + cy.get('input.input[placeholder="Add a task..."') .should('not.exist') cy.get('.tasks') .should('contain', tasks[0].title) diff --git a/frontend/cypress/e2e/sharing/team.spec.ts b/frontend/cypress/e2e/sharing/team.spec.ts index 95ea13c83..f6284fca9 100644 --- a/frontend/cypress/e2e/sharing/team.spec.ts +++ b/frontend/cypress/e2e/sharing/team.spec.ts @@ -14,12 +14,12 @@ describe('Team', () => { const newTeamName = 'New Team' cy.get('a.button') - .contains('Create a new team') + .contains('Create a team') .click() cy.url() .should('contain', '/teams/new') cy.get('.card-header-title') - .contains('Create a new team') + .contains('Create a team') cy.get('input.input') .type(newTeamName) cy.get('.button') diff --git a/frontend/cypress/e2e/task/task.spec.ts b/frontend/cypress/e2e/task/task.spec.ts index 5b6a4db03..6832a3c6d 100644 --- a/frontend/cypress/e2e/task/task.spec.ts +++ b/frontend/cypress/e2e/task/task.spec.ts @@ -65,7 +65,7 @@ describe('Task', () => { it('Should be created new', () => { cy.visit('/projects/1/1') - cy.get('.input[placeholder="Add a new task…"') + cy.get('.input[placeholder="Add a task…"') .type('New Task') cy.get('.button') .contains('Add') @@ -81,7 +81,7 @@ describe('Task', () => { cy.visit('/projects/1/1') cy.get('.project-is-empty-notice') .should('not.exist') - cy.get('.input[placeholder="Add a new task…"') + cy.get('.input[placeholder="Add a task…"') .type('New Task') cy.get('.button') .contains('Add') @@ -640,7 +640,7 @@ describe('Task', () => { .contains('Set Reminders') .click() cy.get('.task-view .columns.details .column button') - .contains('Add a new reminder') + .contains('Add a reminder') .click() cy.get('.datepicker__quick-select-date') .contains('Tomorrow') @@ -665,7 +665,7 @@ describe('Task', () => { .contains('Set Reminders') .click() cy.get('.task-view .columns.details .column button') - .contains('Add a new reminder') + .contains('Add a reminder') .click() cy.get('.datepicker__quick-select-date') .should('not.exist') @@ -694,7 +694,7 @@ describe('Task', () => { .contains('Set Reminders') .click() cy.get('.task-view .columns.details .column button') - .contains('Add a new reminder') + .contains('Add a reminder') .click() cy.get('.datepicker__quick-select-date') .should('not.exist') @@ -723,7 +723,7 @@ describe('Task', () => { .contains('Set Reminders') .click() cy.get('.task-view .columns.details .column button') - .contains('Add a new reminder') + .contains('Add a reminder') .click() cy.get('.datepicker__quick-select-date') .should('not.exist') @@ -759,7 +759,7 @@ describe('Task', () => { .contains('Set Reminders') .click() cy.get('.task-view .columns.details .column button') - .contains('Add a new reminder') + .contains('Add a reminder') .click() cy.get('.datepicker__quick-select-date') .should('not.exist')