mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-26 06:48:16 -05:00
test: fix ui tests
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
<VueButton
|
||||
:label="$t('components.file-diff-view.actions.skip')"
|
||||
class="big"
|
||||
data-testid="skip-button"
|
||||
@click="skip()"
|
||||
/>
|
||||
</template>
|
||||
@@ -54,7 +55,6 @@
|
||||
icon-left="done"
|
||||
:label="$t('components.file-diff-view.actions.continue')"
|
||||
class="big primary"
|
||||
data-testid="skip-button"
|
||||
@click="skip()"
|
||||
/>
|
||||
<VueButton
|
||||
|
||||
@@ -302,7 +302,7 @@ async function create (input, context) {
|
||||
})
|
||||
|
||||
// Create
|
||||
await creator.create({}, preset)
|
||||
await creator.create({ git: true }, preset)
|
||||
removeCreator()
|
||||
|
||||
notifier.notify({
|
||||
|
||||
@@ -20,9 +20,12 @@ describe('Plugins', () => {
|
||||
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')
|
||||
cy.get('.prompts-list', { timeout: 250000 }).should('be.visible')
|
||||
cy.get('[data-testid="finish-install"]').should('not.have.class', 'disabled').click()
|
||||
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')
|
||||
cy.get('.loading-screen .vue-ui-loading-indicator', { timeout: 3000 }).should('be.visible')
|
||||
cy.get('.file-diff-view', { timeout: 250000 }).should('be.visible')
|
||||
cy.get('[data-testid="skip-button"]').should('not.have.class', 'disabled').click()
|
||||
cy.get('[data-testid="skip-button"]', { timeout: 3000 })
|
||||
.should('be.visible')
|
||||
.should('not.have.class', 'disabled')
|
||||
.click()
|
||||
cy.get('.project-plugin-item').should('have.length', 3)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user