Skip to content

Commit

Permalink
test(ui): fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 15, 2018
1 parent 41075fc commit 60722cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@vue/cli-ui/tests/e2e/specs/g1-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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', () => {
Expand All @@ -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')
Expand All @@ -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')
})
})

0 comments on commit 60722cb

Please sign in to comment.