Skip to content

Commit bb75706

Browse files
committed
04/01: add solution text
1 parent e7dc460 commit bb75706

File tree

1 file changed

+9
-2
lines changed
  • exercises/04.debugging/01.solution.ui-mode

1 file changed

+9
-2
lines changed

exercises/04.debugging/01.solution.ui-mode/README.mdx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# UI mode
22

3-
Good job! 👏
3+
1. Run the tests in the UI mode via `npm run test:e2e -- --ui`.
4+
2. See that it fails on the `getByRole('heading', { name: 'hv_nestor_windler70\'s notes' })` locator. Spot that in the UI, the heading element _is_ there, but it has a different text.
5+
3. Fix the issue with the locator in the test (`user.username` -> `user.name`).
6+
4. Rerun the test in the UI mode and see it passing.
47

5-
Please wait for the others to finish so we could go through the solution to this exercise together.
8+
---
9+
10+
1. Practical use and application of the UI mode. When do you use it? How?
11+
2. UI mode is a debugging tool for you. It has no effect on CI, where tests run headless.
12+
3. Recommend creating a designated command for the `--ui` shortcut.
613

714
## Related materials
815

0 commit comments

Comments
 (0)