|
21 | 21 | EXPECTED_COLLECTIONS = ["ansible.builtin", "company_name.coll_1", "company_name.coll_2"]
|
22 | 22 |
|
23 | 23 | base_steps = (
|
24 |
| - UiTestStep(user_input=":1", comment="Browse company_name.coll_1 plugins window"), |
25 |
| - UiTestStep(user_input=":0", comment="filter_1 plugin docs window"), |
| 24 | + # In collections list, start at ansible.builtin (0) |
| 25 | + # Select company_name.coll_1 (1) |
| 26 | + UiTestStep(user_input="down", comment="select company_name.coll_1"), |
| 27 | + UiTestStep(user_input="enter", comment="Browse company_name.coll_1 plugins window"), |
| 28 | + # In company_name.coll_1 plugins list, start at filter_1 (0) |
| 29 | + UiTestStep(user_input="enter", comment="filter_1 plugin docs window"), |
26 | 30 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
27 |
| - UiTestStep(user_input=":1", comment="lookup_1 plugin docs window"), |
| 31 | + # from filter_1 (0) to lookup_1 (1) |
| 32 | + UiTestStep(user_input="down", comment="select lookup_1"), |
| 33 | + UiTestStep(user_input="enter", comment="lookup_1 plugin docs window"), |
28 | 34 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
29 |
| - UiTestStep(user_input=":2", comment="mod_1 plugin docs window"), |
| 35 | + # from lookup_1 (1) to mod_1 (2) |
| 36 | + UiTestStep(user_input="down", comment="select mod_1"), |
| 37 | + UiTestStep(user_input="enter", comment="mod_1 plugin docs window"), |
30 | 38 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
31 |
| - UiTestStep(user_input=":3", comment="role_full details window"), |
| 39 | + # from mod_1 (2) to role_full (3) |
| 40 | + UiTestStep(user_input="down", comment="select role_full"), |
| 41 | + UiTestStep(user_input="enter", comment="role_full details window"), |
32 | 42 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
33 |
| - UiTestStep(user_input=":4", comment="role_minimal details window"), |
| 43 | + # from role_full (3) to role_minimal (4) |
| 44 | + UiTestStep(user_input="down", comment="select role_minimal"), |
| 45 | + UiTestStep(user_input="enter", comment="role_minimal details window"), |
34 | 46 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
| 47 | + # Back to collections list window |
35 | 48 | UiTestStep(
|
36 | 49 | user_input=":back",
|
37 | 50 | comment="Back to ansible-navigator collections browse window",
|
38 | 51 | present=EXPECTED_COLLECTIONS,
|
39 | 52 | ),
|
40 |
| - UiTestStep(user_input=":2", comment="Browse company_name.coll_2 plugins window"), |
41 |
| - UiTestStep(user_input=":0", comment="lookup_2 plugin docs window"), |
| 53 | + # From company_name.coll_1 (1) to company_name.coll_2 (2) |
| 54 | + UiTestStep(user_input="down", comment="select company_name.coll_2"), |
| 55 | + UiTestStep(user_input="enter", comment="Browse company_name.coll_2 plugins window"), |
| 56 | + # In company_name.coll_2, start at lookup_2 (0) |
| 57 | + UiTestStep(user_input="enter", comment="lookup_2 plugin docs window"), |
42 | 58 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_2 plugins window"),
|
43 |
| - UiTestStep(user_input=":1", comment="mod_2 plugin docs window"), |
| 59 | + # From lookup_2 (0) to mod_2 (1) |
| 60 | + UiTestStep(user_input="down", comment="select mod_2"), |
| 61 | + UiTestStep(user_input="enter", comment="mod_2 plugin docs window"), |
44 | 62 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_2 plugins window"),
|
| 63 | + # Back to collections list window |
45 | 64 | UiTestStep(
|
46 | 65 | user_input=":back",
|
47 | 66 | comment="Back to ansible-navigator collections browse window",
|
|
56 | 75 | ),
|
57 | 76 | # Dismiss the warning
|
58 | 77 | UiTestStep(
|
59 |
| - user_input="Enter", |
| 78 | + user_input="enter", |
60 | 79 | comment="ansible-navigator collections browse window",
|
61 | 80 | present=EXPECTED_COLLECTIONS,
|
62 | 81 | ),
|
63 | 82 | # and repeat some basic browsing
|
64 |
| - UiTestStep(user_input=":1", comment="Browse company_name.coll_1 plugins window"), |
65 |
| - UiTestStep(user_input=":0", comment="filter_1 plugin docs window"), |
| 83 | + # Select company_name.coll_1 (1) |
| 84 | + UiTestStep(user_input="down", comment="select company_name.coll_1"), |
| 85 | + UiTestStep(user_input="enter", comment="Browse company_name.coll_1 plugins window"), |
| 86 | + # In company_name.coll_1, start at filter_1 (0) |
| 87 | + UiTestStep(user_input="enter", comment="filter_1 plugin docs window"), |
66 | 88 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
67 |
| - UiTestStep(user_input=":1", comment="lookup_1 plugin docs window"), |
| 89 | + # from filter_1 (0) to lookup_1 (1) |
| 90 | + UiTestStep(user_input="down", comment="select lookup_1"), |
| 91 | + UiTestStep(user_input="enter", comment="lookup_1 plugin docs window"), |
68 | 92 | UiTestStep(user_input=":back", comment="Back to browse company_name.coll_1 plugins window"),
|
| 93 | + # Back to collections list window |
69 | 94 | UiTestStep(
|
70 | 95 | user_input=":back",
|
71 | 96 | comment="Back to ansible-navigator collections browse window",
|
72 | 97 | present=EXPECTED_COLLECTIONS,
|
73 | 98 | ),
|
| 99 | + # From company_name.coll_1 (1) to ansible.builtin (0) |
| 100 | + UiTestStep(user_input="up", comment="select ansible.builtin"), |
74 | 101 | UiTestStep(
|
75 |
| - user_input=":0", |
| 102 | + user_input="enter", |
76 | 103 | comment="Browse ansible.builtin plugins window",
|
77 | 104 | present=["yum_repository"],
|
78 | 105 | ),
|
79 | 106 | UiTestStep(
|
80 |
| - user_input=":1", |
| 107 | + user_input="down", |
| 108 | + comment="Browse ansible.builtin.add_host module", |
| 109 | + ), |
| 110 | + UiTestStep( |
| 111 | + user_input="enter", |
81 | 112 | comment="Browse ansible.builtin.add_host module",
|
82 | 113 | present=["ansible.builtin.add_host"],
|
83 | 114 | ),
|
|
0 commit comments