Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3d0beab

Browse files
committed
Fix tests
1 parent 3114e80 commit 3d0beab

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

‎components/Example3.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
</ElButton>
6767
<ElButton
6868
type="danger"
69-
data-cy="btn-hello-name-post"
69+
data-cy="btn-hello-name-post-error"
7070
@click="helloNamePostError(form.name)"
7171
>
7272
.$get() Error

‎components/Example4.vue‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,23 @@ export default {
4646
required
4747
/>
4848
</ElFormItem>
49-
<ElButton type="primary" @click="randomCat(form.name)">🐈 Meow</ElButton>
49+
<ElButton
50+
type="primary"
51+
data-cy="btn-random-cat"
52+
@click="randomCat(form.name)"
53+
>
54+
🐈 Meow
55+
</ElButton>
5056
<p>
5157
Response:
5258
<br />
5359
<br />
54-
<img v-show="response" :src="response" style="width:100%;height:auto;" />
60+
<img
61+
v-show="response"
62+
data-cy="img-random-cat"
63+
:src="response"
64+
style="width:100%;height:auto;"
65+
/>
5566
</p>
5667
<p v-if="error" style="color:red;">
5768
<strong>Error {{ error.status }}</strong>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /