Skip to content

Commit fbe287d

Browse files
committed
test: fix visibility issues in Cypress test
1 parent 7384c62 commit fbe287d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@vue/cli-ui/tests/e2e/specs/g2-plugins.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ describe('Plugins', () => {
99
cy.get('[data-testid="add-plugin"]').click()
1010
cy.get('.project-plugins-add').should('be.visible')
1111
// Search
12+
cy.get('.instant-search-input input').clear().type('pwa')
1213
cy.get('.package-search-item:contains("@vue/cli-plugin-pwa")').should('be.visible')
1314
cy.get('.instant-search-input input').clear().type('unit-jest')
1415
cy.get('.package-search-item:contains("@vue/cli-plugin-pwa")').should('be.not.visible')
1516
cy.get('.package-search-item:contains("@vue/cli-plugin-unit-jest")').should('be.visible')
1617
cy.get('.instant-search-input input').clear()
1718
// Install
19+
cy.get('.instant-search-input input').clear().type('pwa')
1820
cy.get('.package-search-item:contains("@vue/cli-plugin-pwa") [data-testid="name"]').should('be.visible').click()
1921
cy.get('[data-testid="download-plugin"]:contains("@vue/cli-plugin-pwa")').should('not.have.class', 'disabled').click()
2022
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')

0 commit comments

Comments
 (0)