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:
parent
901f76ae3b
commit
a8ada57e81
2 changed files with 6 additions and 5 deletions
|
@ -8,6 +8,8 @@ describe('Team', () => {
|
||||||
TeamFactory.truncate()
|
TeamFactory.truncate()
|
||||||
cy.visit('/teams')
|
cy.visit('/teams')
|
||||||
|
|
||||||
|
const newTeamName = 'New Team'
|
||||||
|
|
||||||
cy.get('a.button')
|
cy.get('a.button')
|
||||||
.contains('New Team')
|
.contains('New Team')
|
||||||
.click()
|
.click()
|
||||||
|
@ -16,7 +18,7 @@ describe('Team', () => {
|
||||||
cy.get('h3')
|
cy.get('h3')
|
||||||
.contains('Create a new team')
|
.contains('Create a new team')
|
||||||
cy.get('input.input')
|
cy.get('input.input')
|
||||||
.type('New Team')
|
.type(newTeamName)
|
||||||
cy.get('.button')
|
cy.get('.button')
|
||||||
.contains('Add')
|
.contains('Add')
|
||||||
.click()
|
.click()
|
||||||
|
@ -25,9 +27,8 @@ describe('Team', () => {
|
||||||
.should('not.exist')
|
.should('not.exist')
|
||||||
cy.url()
|
cy.url()
|
||||||
.should('contain', '/edit')
|
.should('contain', '/edit')
|
||||||
cy.get('.card-header .card-header-title')
|
cy.get('input#teamtext')
|
||||||
.contains('Edit Team')
|
.should('have.value', newTeamName)
|
||||||
.should('exist')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Shows all teams', () => {
|
it('Shows all teams', () => {
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
</div>
|
</div>
|
||||||
</card>
|
</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="p-4" v-if="userIsAdmin">
|
||||||
<div class="field has-addons">
|
<div class="field has-addons">
|
||||||
<div class="control is-expanded">
|
<div class="control is-expanded">
|
||||||
|
|
Loading…
Reference in a new issue