mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 03:48:36 -05:00
test(ui): fix e2e
This commit is contained in:
@@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user