@lemon-kite-81269 if you are testing a wrong username/password that should be a separate test from a correct username/password. Both can use a small util function to enter the creds and click log in but should have different steps to validate each outcome.
js
it('correct username/password', () => {
// correct username and password flow
})
it('wrong username/password', () => {
// correct username and password flow
})