Skip to content

Commit

Permalink
test: fix visibility issues in Cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Aug 8, 2019
1 parent 7384c62 commit fbe287d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@vue/cli-ui/tests/e2e/specs/g2-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ describe('Plugins', () => {
cy.get('[data-testid="add-plugin"]').click()
cy.get('.project-plugins-add').should('be.visible')
// Search
cy.get('.instant-search-input input').clear().type('pwa')
cy.get('.package-search-item:contains("@vue/cli-plugin-pwa")').should('be.visible')
cy.get('.instant-search-input input').clear().type('unit-jest')
cy.get('.package-search-item:contains("@vue/cli-plugin-pwa")').should('be.not.visible')
cy.get('.package-search-item:contains("@vue/cli-plugin-unit-jest")').should('be.visible')
cy.get('.instant-search-input input').clear()
// Install
cy.get('.instant-search-input input').clear().type('pwa')
cy.get('.package-search-item:contains("@vue/cli-plugin-pwa") [data-testid="name"]').should('be.visible').click()
cy.get('[data-testid="download-plugin"]:contains("@vue/cli-plugin-pwa")').should('not.have.class', 'disabled').click()
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')
Expand Down

0 comments on commit fbe287d

Please sign in to comment.