@@ -139,7 +139,7 @@ describe('e2e: todomvc', () => {
139
139
// editing triggered by blur
140
140
await click ( '.filters li:nth-child(1) a' )
141
141
await timeout ( 1 )
142
- await click ( '.todo:nth-child(1) label' , { clickCount : 2 } )
142
+ await click ( '.todo:nth-child(1) label' , { count : 2 } )
143
143
expect ( await count ( '.todo.editing' ) ) . toBe ( 1 )
144
144
expect ( await isFocused ( '.todo:nth-child(1) .edit' ) ) . toBe ( true )
145
145
await clearValue ( '.todo:nth-child(1) .edit' )
@@ -149,21 +149,21 @@ describe('e2e: todomvc', () => {
149
149
expect ( await text ( '.todo:nth-child(1) label' ) ) . toBe ( 'edited!' )
150
150
151
151
// editing triggered by enter
152
- await click ( '.todo label' , { clickCount : 2 } )
152
+ await click ( '.todo label' , { count : 2 } )
153
153
await enterValue ( '.todo:nth-child(1) .edit' , 'edited again!' )
154
154
expect ( await count ( '.todo.editing' ) ) . toBe ( 0 )
155
155
expect ( await text ( '.todo:nth-child(1) label' ) ) . toBe ( 'edited again!' )
156
156
157
157
// cancel
158
- await click ( '.todo label' , { clickCount : 2 } )
158
+ await click ( '.todo label' , { count : 2 } )
159
159
await clearValue ( '.todo:nth-child(1) .edit' )
160
160
await page ( ) . type ( '.todo:nth-child(1) .edit' , 'edited!' )
161
161
await page ( ) . keyboard . press ( 'Escape' )
162
162
expect ( await count ( '.todo.editing' ) ) . toBe ( 0 )
163
163
expect ( await text ( '.todo:nth-child(1) label' ) ) . toBe ( 'edited again!' )
164
164
165
165
// empty value should remove
166
- await click ( '.todo label' , { clickCount : 2 } )
166
+ await click ( '.todo label' , { count : 2 } )
167
167
await enterValue ( '.todo:nth-child(1) .edit' , ' ' )
168
168
expect ( await count ( '.todo' ) ) . toBe ( 3 )
169
169
0 commit comments