I'm facing an issue in my test case:
- It enters a specific URL
- Logs in
- Validates something
- Logs out
If the validation fails, the logout step is skipped.
To handle this, I tried using thenFinally()
, but it caused another problem - it conceals any assertion errors and shows the test as passing even when it's actually failing.
I would appreciate it if someone could assist me in figuring out what I'm doing incorrectly or suggest a possible workaround. Thank you!