Fix team edit test (#382)

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/382
Co-authored-by: konrad <konrad@kola-entertainments.de>
Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
konrad 2021-01-21 19:14:26 +00:00
parent 901f76ae3b
commit a8ada57e81
2 changed files with 6 additions and 5 deletions

View file

@ -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', () => {

View file

@ -68,7 +68,7 @@
</div>
</card>
<card class="is-fullwidth has-overflow" title="Team Members">
<card class="is-fullwidth has-overflow" title="Team Members" :padding="false">
<div class="p-4" v-if="userIsAdmin">
<div class="field has-addons">
<div class="control is-expanded">