test(ui): fix e2e

This commit is contained in:
Guillaume Chau
2018-06-15 21:28:08 +02:00
parent 41075fccec
commit 60722cb1f0
@@ -11,6 +11,7 @@ describe('Vue project manager', () => {
})
it('Creates a new project (manual)', () => {
cy.viewport(1400, 800)
cy.visit('/project/select')
cy.get('.tab-button').eq(1).click()
cy.get('.folder-explorer').should('be.visible')
@@ -51,7 +52,7 @@ describe('Vue project manager', () => {
})
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')
cy.get('.project-home', { timeout: 250000 }).should('be.visible')
cy.get('.current-project').should('have.text', 'cli-ui-test')
cy.get('.top-bar .current-project').should('contain', 'cli-ui-test')
})
it('Favorites the project', () => {
@@ -63,6 +64,7 @@ describe('Vue project manager', () => {
})
it('Imports a project', () => {
cy.viewport(1400, 800)
cy.visit('/project/select')
cy.get('.project-select-list-item').eq(0).get('[data-testid="delete-button"]').click()
cy.get('.project-select-list-item').should('not.exist')
@@ -75,6 +77,6 @@ describe('Vue project manager', () => {
cy.get('.import-project').should('not.have.class', 'disabled').click()
})
cy.get('.project-home').should('be.visible')
cy.get('.current-project').should('have.text', 'cli-ui-test')
cy.get('.top-bar .current-project').should('contain', 'cli-ui-test')
})
})