From a8ada57e81ae7a4dbdabc9c3169076acf26cc058 Mon Sep 17 00:00:00 2001 From: konrad Date: Thu, 21 Jan 2021 19:14:26 +0000 Subject: [PATCH] Fix team edit test (#382) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/382 Co-authored-by: konrad Co-committed-by: konrad --- cypress/integration/sharing/team.spec.js | 9 +++++---- src/views/teams/EditTeam.vue | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cypress/integration/sharing/team.spec.js b/cypress/integration/sharing/team.spec.js index 2a7f55cc..5f9b4804 100644 --- a/cypress/integration/sharing/team.spec.js +++ b/cypress/integration/sharing/team.spec.js @@ -8,6 +8,8 @@ describe('Team', () => { TeamFactory.truncate() cy.visit('/teams') + const newTeamName = 'New Team' + cy.get('a.button') .contains('New Team') .click() @@ -16,7 +18,7 @@ describe('Team', () => { cy.get('h3') .contains('Create a new team') cy.get('input.input') - .type('New Team') + .type(newTeamName) cy.get('.button') .contains('Add') .click() @@ -25,9 +27,8 @@ describe('Team', () => { .should('not.exist') cy.url() .should('contain', '/edit') - cy.get('.card-header .card-header-title') - .contains('Edit Team') - .should('exist') + cy.get('input#teamtext') + .should('have.value', newTeamName) }) it('Shows all teams', () => { diff --git a/src/views/teams/EditTeam.vue b/src/views/teams/EditTeam.vue index 3ebe797d..20df82a6 100644 --- a/src/views/teams/EditTeam.vue +++ b/src/views/teams/EditTeam.vue @@ -68,7 +68,7 @@ - +