diff --git a/packages/@vue/cli-ui/tests/e2e/specs/g1-projects.js b/packages/@vue/cli-ui/tests/e2e/specs/g1-projects.js index d58ab777f6..5d12ead01d 100644 --- a/packages/@vue/cli-ui/tests/e2e/specs/g1-projects.js +++ b/packages/@vue/cli-ui/tests/e2e/specs/g1-projects.js @@ -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') }) })