|
9 | 9 | --> |
10 | 10 |
|
11 | 11 | <tests for="../../examples/todomvc/components/App.vue"> |
12 | | - <it will="render header"> |
| 12 | + <test name="render header"> |
13 | 13 | <expect text-of="h1" to-match="todos" /> |
14 | | - </it> |
| 14 | + </test> |
15 | 15 |
|
16 | | - <it will="add a todo"> |
| 16 | + <test name="add a todo"> |
17 | 17 | <set selector=".new-todo" value="First" /> |
18 | 18 | <trigger selector=".new-todo" event="keyup.enter" /> |
19 | 19 | <expect text-of=".todo-list li" to-match="First" /> |
20 | 20 | <expect text-of=".todo-count" to-match="1 item left" /> |
21 | | - </it> |
| 21 | + </test> |
22 | 22 |
|
23 | | - <it will="remove a todo"> |
| 23 | + <test name="remove a todo"> |
24 | 24 | <expect text-of=".todo-list" to-be-truthy /> |
25 | 25 | <trigger selector=".todo-list li .destroy" event="click" /> |
26 | 26 | <expect text-of=".todo-list" to-be-falsy /> |
27 | | - </it> |
| 27 | + </test> |
28 | 28 |
|
29 | | - <it will="add then complete a todo"> |
| 29 | + <test name="add then complete a todo"> |
30 | 30 | <set selector=".new-todo" value="Another" /> |
31 | 31 | <trigger selector=".new-todo" event="keyup.enter" /> |
32 | 32 | <trigger selector="input.toggle" event="click" /> |
33 | 33 | <expect text-of=".todo.completed" to-match="Another" /> |
34 | | - </it> |
| 34 | + </test> |
35 | 35 |
|
36 | | - <it will="clicking `active` hides list"> |
| 36 | + <test name="clicking `active` hides list"> |
37 | 37 | <expect text-of=".todo-list" to-be-truthy /> |
38 | 38 | <trigger selector='a[href="#/active"]' event="click" /> |
39 | 39 | <expect text-of=".todo-list" to-be-falsy /> |
40 | | - </it> |
| 40 | + </test> |
41 | 41 |
|
42 | | - <it will="clicking `completed` shows item we added + completed"> |
| 42 | + <test name="clicking `completed` shows item we added + completed"> |
43 | 43 | <trigger selector='a[href="#/completed"]' event="click" /> |
44 | 44 | <expect text-of=".todo-list" to-equal="Another" /> |
45 | | - </it> |
| 45 | + </test> |
46 | 46 |
|
47 | | - <it will="clear the list when `clear completed` is clicked"> |
| 47 | + <test name="clear the list when `clear completed` is clicked"> |
48 | 48 | <expect text-of=".todo-list" to-equal="Another" /> |
49 | 49 | <trigger selector=".clear-completed" event="click" /> |
50 | 50 | <expect text-of=".todo-list" to-be-falsy /> |
51 | | - </it> |
| 51 | + </test> |
52 | 52 |
|
53 | | - <it will="mark all items completed when `toggle all` clicked"> |
| 53 | + <test name="mark all items completed when `toggle all` clicked"> |
54 | 54 | <!-- Add a todo --> |
55 | 55 | <set selector=".new-todo" value="Another" /> |
56 | 56 | <trigger selector=".new-todo" event="keyup.enter" /> |
|
62 | 62 | <!-- Confirm the active list is empty --> |
63 | 63 | <trigger selector='a[href="#/active"]' event="click" /> |
64 | 64 | <expect text-of=".todo-list" to-be-falsy /> |
65 | | - </it> |
| 65 | + </test> |
66 | 66 | </tests> |
0 commit comments