Skip to content

Commit c35eba2

Browse files
committed
test: fix ui tests
1 parent c12f240 commit c35eba2

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

packages/@vue/cli-ui/src/components/FileDiffView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
<VueButton
4747
:label="$t('components.file-diff-view.actions.skip')"
4848
class="big"
49+
data-testid="skip-button"
4950
@click="skip()"
5051
/>
5152
</template>
@@ -54,7 +55,6 @@
5455
icon-left="done"
5556
:label="$t('components.file-diff-view.actions.continue')"
5657
class="big primary"
57-
data-testid="skip-button"
5858
@click="skip()"
5959
/>
6060
<VueButton

packages/@vue/cli-ui/src/graphql-api/connectors/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ async function create (input, context) {
302302
})
303303

304304
// Create
305-
await creator.create({}, preset)
305+
await creator.create({ git: true }, preset)
306306
removeCreator()
307307

308308
notifier.notify({

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ describe('Plugins', () => {
2020
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')
2121
cy.get('.prompts-list', { timeout: 250000 }).should('be.visible')
2222
cy.get('[data-testid="finish-install"]').should('not.have.class', 'disabled').click()
23-
cy.get('.loading-screen .vue-ui-loading-indicator').should('be.visible')
23+
cy.get('.loading-screen .vue-ui-loading-indicator', { timeout: 3000 }).should('be.visible')
2424
cy.get('.file-diff-view', { timeout: 250000 }).should('be.visible')
25-
cy.get('[data-testid="skip-button"]').should('not.have.class', 'disabled').click()
25+
cy.get('[data-testid="skip-button"]', { timeout: 3000 })
26+
.should('be.visible')
27+
.should('not.have.class', 'disabled')
28+
.click()
2629
cy.get('.project-plugin-item').should('have.length', 3)
2730
})
2831
})

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy