Skip to content

Commit 71bc8a5

Browse files
author
Guillaume Chau
committed
test(ui): use data-testid
1 parent 2f94a85 commit 71bc8a5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:class="{
55
selected: feature.enabled
66
}"
7-
:data-id="feature.id"
7+
:data-testid="feature.id"
88
>
99
<VueSwitch
1010
:value="feature.enabled"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:class="{
55
selected
66
}"
7-
:data-id="preset.id"
7+
:data-testid="preset.id"
88
>
99
<div class="content">
1010
<div

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ describe('Vue project manager', () => {
3030
cy.get('.next').click()
3131
})
3232
cy.get('.presets').within(() => {
33-
cy.get('[data-id="__manual__"]').click()
33+
cy.get('[data-testid="__manual__"]').click()
3434
cy.get('.next').click()
3535
})
3636
cy.get('.features').within(() => {
37-
cy.get('[data-id="pwa"] .bullet').click()
38-
cy.get('[data-id="router"] .bullet').click()
39-
cy.get('[data-id="vuex"] .bullet').click()
40-
cy.get('[data-id="css-preprocessor"] .bullet').click()
41-
cy.get('[data-id="use-config-files"] .bullet').click()
37+
cy.get('[data-testid="pwa"] .bullet').click()
38+
cy.get('[data-testid="router"] .bullet').click()
39+
cy.get('[data-testid="vuex"] .bullet').click()
40+
cy.get('[data-testid="css-preprocessor"] .bullet').click()
41+
cy.get('[data-testid="use-config-files"] .bullet').click()
4242
cy.get('.next').click()
4343
})
4444
cy.get('.config').within(() => {

0 commit comments

Comments
 (0)