Commit 779ac72
Fix failing UI e2e test: use specific locator for Write a Test click
The `I.click('Write a Test')` was matching the text but the click could
land on the `<i>` icon inside the `<a>` element, missing the @click handler.
Fix: use `locate('a.navbar-item[role="button"]').withText('Write a Test')`
to target the `<a>` element directly.
Also remove redundant hash-checks in tests that navigate directly via
`I.amOnPage('/#/new-test')` and `I.amOnPage('/#/settings')` — the hash
is already set by amOnPage, no need to re-verify it.
Agent-Logs-Url: https://github.com/codeceptjs/ui/sessions/3193cede-3cd5-462b-8ff2-a16e60136c45
Co-authored-by: kobenguyent <7845001+kobenguyent@users.noreply.github.com>1 parent 22fd9c7 commit 779ac72
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments