Fix selectors in test
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
kolaente 2021-01-17 18:09:07 +01:00
parent 04d923dbf9
commit d3641977ef
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
9 changed files with 15 additions and 15 deletions

View File

@ -29,7 +29,7 @@ describe('Lists', () => {
.contains('Create a new list') .contains('Create a new list')
cy.get('input.input') cy.get('input.input')
.type('New List') .type('New List')
cy.get('button') cy.get('.button')
.contains('Add') .contains('Add')
.click() .click()

View File

@ -30,7 +30,7 @@ describe('Namepaces', () => {
.should('contain', 'Create a new namespace') .should('contain', 'Create a new namespace')
cy.get('input.input') cy.get('input.input')
.type('New Namespace') .type('New Namespace')
cy.get('button') cy.get('.button')
.contains('Add') .contains('Add')
.click() .click()
cy.url() cy.url()

View File

@ -17,7 +17,7 @@ describe('Team', () => {
.contains('Create a new team') .contains('Create a new team')
cy.get('input.input') cy.get('input.input')
.type('New Team') .type('New Team')
cy.get('button') cy.get('.button')
.contains('Add') .contains('Add')
.click() .click()
@ -113,7 +113,7 @@ describe('Team', () => {
.click() .click()
cy.get('.card') cy.get('.card')
.contains('Team Members') .contains('Team Members')
.get('.card-content button.button') .get('.card-content .button')
.contains('Add To Team') .contains('Add To Team')
.click() .click()

View File

@ -28,7 +28,7 @@ describe('Task', () => {
cy.visit('/lists/1/list') cy.visit('/lists/1/list')
cy.get('input.input[placeholder="Add a new task..."') cy.get('input.input[placeholder="Add a new task..."')
.type('New Task') .type('New Task')
cy.get('button.button') cy.get('.button')
.contains('Add') .contains('Add')
.click() .click()
cy.get('.tasks .task .tasktext') cy.get('.tasks .task .tasktext')
@ -44,7 +44,7 @@ describe('Task', () => {
.should('not.exist') .should('not.exist')
cy.get('input.input[placeholder="Add a new task..."') cy.get('input.input[placeholder="Add a new task..."')
.type('New Task') .type('New Task')
cy.get('button.button') cy.get('.button')
.contains('Add') .contains('Add')
.click() .click()
@ -175,7 +175,7 @@ describe('Task', () => {
.should('exist') .should('exist')
}) })
it('Can add a new comment', () => { it.only('Can add a new comment', () => {
const tasks = TaskFactory.create(1, { const tasks = TaskFactory.create(1, {
id: 1, id: 1,
}) })
@ -183,7 +183,7 @@ describe('Task', () => {
cy.get('.task-view .comments .media.comment .editor .vue-easymde .EasyMDEContainer .CodeMirror-scroll') cy.get('.task-view .comments .media.comment .editor .vue-easymde .EasyMDEContainer .CodeMirror-scroll')
.type('{selectall}New Comment') .type('{selectall}New Comment')
cy.get('.task-view .comments .media.comment .button.is-primary') cy.get('.task-view .comments .media.comment .button:not([disabled])')
.contains('Comment') .contains('Comment')
.click() .click()

View File

@ -4,7 +4,7 @@ const testAndAssertFailed = fixture => {
cy.visit('/login') cy.visit('/login')
cy.get('input[id=username]').type(fixture.username) cy.get('input[id=username]').type(fixture.username)
cy.get('input[id=password]').type(fixture.password) cy.get('input[id=password]').type(fixture.password)
cy.get('button').contains('Login').click() cy.get('.button').contains('Login').click()
cy.wait(5000) // It can take waaaayy too long to log the user in cy.wait(5000) // It can take waaaayy too long to log the user in
cy.url().should('include', '/') cy.url().should('include', '/')
@ -32,7 +32,7 @@ context('Login', () => {
cy.visit('/login') cy.visit('/login')
cy.get('input[id=username]').type(fixture.username) cy.get('input[id=username]').type(fixture.username)
cy.get('input[id=password]').type(fixture.password) cy.get('input[id=password]').type(fixture.password)
cy.get('button').contains('Login').click() cy.get('.button').contains('Login').click()
cy.url().should('include', '/') cy.url().should('include', '/')
cy.get('h2').should('contain', `Hi ${fixture.username}!`) cy.get('h2').should('contain', `Hi ${fixture.username}!`)
}) })

View File

@ -26,7 +26,7 @@ context('Registration', () => {
cy.get('#email').type(fixture.email) cy.get('#email').type(fixture.email)
cy.get('#password1').type(fixture.password) cy.get('#password1').type(fixture.password)
cy.get('#password2').type(fixture.password) cy.get('#password2').type(fixture.password)
cy.get('button#register-submit').click() cy.get('#register-submit').click()
cy.url().should('include', '/') cy.url().should('include', '/')
cy.get('h2').should('contain', `Hi ${fixture.username}!`) cy.get('h2').should('contain', `Hi ${fixture.username}!`)
}) })
@ -43,7 +43,7 @@ context('Registration', () => {
cy.get('#email').type(fixture.email) cy.get('#email').type(fixture.email)
cy.get('#password1').type(fixture.password) cy.get('#password1').type(fixture.password)
cy.get('#password2').type(fixture.password) cy.get('#password2').type(fixture.password)
cy.get('button#register-submit').click() cy.get('#register-submit').click()
cy.get('div.notification.is-danger').contains('A user with this username already exists.') cy.get('div.notification.is-danger').contains('A user with this username already exists.')
}) })
}) })

View File

@ -32,7 +32,7 @@ describe('User Settings', () => {
cy.get('input#newName') cy.get('input#newName')
.type('Lorem Ipsum') .type('Lorem Ipsum')
cy.get('.card.update-name button.button.is-primary') cy.get('.card.update-name .button.is-primary')
.contains('Save') .contains('Save')
.click() .click()

View File

@ -37,7 +37,6 @@ export default {
default: false, default: false,
}, },
icon: { icon: {
type: String,
default: '', default: '',
}, },
loading: { loading: {

View File

@ -174,7 +174,8 @@
:aria-label="'Goto page ' + p.number" :aria-label="'Goto page ' + p.number"
:class="{'is-current': p.number === currentPage}" :class="{'is-current': p.number === currentPage}"
:to="getRouteForPagination(p.number, 'table')" :to="getRouteForPagination(p.number, 'table')"
class="pagination-link">{{ p.number }} class="pagination-link">
{{ p.number }}
</router-link> </router-link>
</li> </li>
</template> </template>