Skip to content
Snippets Groups Projects
Commit a598842d authored by OZGCloud's avatar OZGCloud
Browse files

OZG-2644 OZG-2682 adjust e2e test

parent 2b2160ae
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,9 @@ describe('Vorgang forwarding', () => {
describe('fill forward formular', () => {
it('should show validation message for invalid email', () => {
describe('with email domain NOT in landesnetz', () => {
it('should show validation message for invalid password', () => {
const forwardFormular = forwardingContainer.getFormular();
forwardFormular.getPasswort().clear().type('zukurz');
......@@ -62,7 +64,7 @@ describe('Vorgang forwarding', () => {
exist(forwardFormular.getPasswortError());
})
it('should show validation message for invalid password', () => {
it('should show validation message for invalid email', () => {
const forwardFormular = forwardingContainer.getFormular();
forwardFormular.getZustaendigeStelle().clear().type('invalidemail.com');
......@@ -71,17 +73,21 @@ describe('Vorgang forwarding', () => {
exist(forwardFormular.getZustaendigeStelleError());
})
})
it('should show spinner with text on valid formular', () => {
describe('with email domain in landesnetz', () => {
it('should send formular with landesnetz email and empty password', () => {
const forwardFormular = forwardingContainer.getFormular();
forwardFormular.getZustaendigeStelle().clear().type(FORWARDING_TEST_EMAIL);
forwardFormular.getPasswort().clear().type('validespasswort');
forwardFormular.getPasswort().clear();
forwardFormular.forward();
exist(forwardingContainer.getSpinner());
})
})
})
describe('success forwarding', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment