Skip to content
Snippets Groups Projects
Commit d4121f99 authored by Cord Westhoff's avatar Cord Westhoff
Browse files

OZG-7798 remove code to check url ending

parent 236971c2
No related branches found
No related tags found
1 merge request!69Ozg 7798 statistik e2 e
......@@ -8,7 +8,7 @@ export class StatistikE2EComponent {
exist(cy.getTestElement(this.locatorHeaderText));
}
public getWeiterFelderAuswertenButton(): Cypress.Chainable<Element> {
public getWeitereFelderAuswertenButton(): Cypress.Chainable<Element> {
return cy.getTestElement(this.locatorWeitereFelderAuswertenButton);
}
}
import { ROUTES } from '@admin-client/shared';
import { StatistikFieldsFormE2EComponent } from '../../../components/statistik/statistik-fields-form.e2e.component';
import { StatistikE2EComponent } from '../../../components/statistik/statistik.e2e.component';
import { urlShouldEndsWith } from '../../../support/cypress-helper';
......@@ -13,25 +12,13 @@ describe('Felder in Statistik hinzufügen', () => {
loginAsDaria();
});
it('should be on statistik page', () => {
urlShouldEndsWith(ROUTES.STATISTIK);
});
it('should show statistik header', () => {
component.isHeaderTextVisible();
});
it('should show "Weiter Felder auswerten" button', () => {
exist(component.getWeiterFelderAuswertenButton());
exist(component.getWeitereFelderAuswertenButton());
});
it('should navigate to route', () => {
component.getWeiterFelderAuswertenButton().click();
urlShouldEndsWith(ROUTES.STATISTIK_NEU);
});
it('should have all form elements after button click', () => {
component.getWeitereFelderAuswertenButton().click();
it('should have all form elements', () => {
exist(fieldsFormComponent.getFormEngineInput());
exist(fieldsFormComponent.getFormIdInput());
exist(fieldsFormComponent.getDataFieldInput(0));
......@@ -49,6 +36,6 @@ describe('Felder in Statistik hinzufügen', () => {
it('should navigate to statistik on cancel', () => {
fieldsFormComponent.cancel();
urlShouldEndsWith(ROUTES.STATISTIK);
exist(component.getWeitereFelderAuswertenButton());
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment