File tree Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Expand file tree Collapse file tree 4 files changed +28
-5
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <button @click =" emitEvent" >Emit</button >
4
- <button @click =" emitEvent1" >Emit</button >
5
- <button @click =" emitEvent2" >Emit</button >
3
+ <button class = " btn-emit-event " @click =" emitEvent" >Emit</button >
4
+ <button class = " btn-emit-event1 " @click =" emitEvent1" >Emit</button >
5
+ <button class = " btn-emit-event2 " @click =" emitEvent2" >Emit</button >
6
6
</div >
7
7
</template >
8
8
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <button @click =" emitLogEvent" >Emit</button >
3
+ <button class = " btn-emit-log-event " @click =" emitLogEvent" >Emit</button >
4
4
</div >
5
5
</template >
6
6
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div >
3
- <button @click =" emitLogEvent" >Emit from cond</button >
3
+ <button class = " btn-emit-event-cond " @click =" emitLogEvent" >Emit from cond</button >
4
4
</div >
5
5
</template >
6
6
Original file line number Diff line number Diff line change @@ -205,6 +205,29 @@ module.exports = {
205
205
. click ( '.import' )
206
206
. waitForElementNotPresent ( '.import-state' , 2000 )
207
207
208
+ // Events
209
+ . frame ( 'target' )
210
+ . click ( '.btn-emit-event' )
211
+ . click ( '.btn-emit-event1' )
212
+ . click ( '.btn-emit-event2' )
213
+ . frame ( null )
214
+ . assert . containsText ( '.event-count' , 3 )
215
+ . click ( '.button.events' )
216
+ . assert . elementNotPresent ( '.event-count' )
217
+ . assert . count ( '.history .entry' , 3 )
218
+ . frame ( 'target' )
219
+ . click ( '.btn-emit-log-event' )
220
+ . frame ( null )
221
+ . assert . count ( '.history .entry' , 4 )
222
+ . setValue ( '.search input' , 'event' )
223
+ . assert . count ( '.history .entry' , 3 )
224
+ . clearValue ( '.search input' )
225
+ . setValue ( '.search input' , 'EventChild1' )
226
+ . assert . count ( '.history .entry' , 1 )
227
+ . clearValue ( '.search input' )
228
+ . click ( '.button.reset' )
229
+ . assert . count ( '.history .entry' , 0 )
230
+
208
231
// done
209
232
. end ( )
210
233
}
You can’t perform that action at this time.
0 commit comments