UI mode
- Run the tests in the UI mode via
npm run test:e2e -- --ui. - 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. - Fix the issue with the locator in the test (
user.username->user.name). - Rerun the test in the UI mode and see it passing.
- Practical use and application of the UI mode. When do you use it? How?
- UI mode is a debugging tool for you. It has no effect on CI, where tests run headless.
- Recommend creating a designated command for the
--uishortcut.