You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to test different scopes of the application, loginViaUI is being re-used (using a custom command which may be turned into a util function -if possible). The first test now is login to test against valid and invalid data.
So I'd like to handle error codes and I wonder if something similar to cy.intercept(POST, '/login') .then(xhr ..) approach is possible (using a switch statement in then).
The app tested is in Angular and Cypress in version 9.
I believe using cy.origin is first step with SSO login spec but not sure about the implementation with cy.session as well.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In order to test different scopes of the application, loginViaUI is being re-used (using a custom command which may be turned into a util function -if possible). The first test now is login to test against valid and invalid data.
So I'd like to handle error codes and I wonder if something similar to cy.intercept(POST, '/login') .then(xhr ..) approach is possible (using a switch statement in then).
The app tested is in Angular and Cypress in version 9.
I believe using cy.origin is first step with SSO login spec but not sure about the implementation with cy.session as well.
(uncomplete) code so far:
Beta Was this translation helpful? Give feedback.
All reactions