Skip to content
Snippets Groups Projects
Commit 4b8654b7 authored by Martin's avatar Martin
Browse files

OZG-7473 rename getRootElement -> getRoot

parent 6b71b9cf
No related branches found
No related tags found
2 merge requests!107Ozg 7473 e2e,!104Administration: Neu hinzugefügte Felder für Statistik speichern
export class AggregationMappingFormE2EComponent {
private readonly rootElement: string = 'aggregation-mapping-form';
private readonly root: string = 'aggregation-mapping-form';
private readonly nameInput: string = 'aggregation-mapping-name-text-input';
private readonly formEngineInput: string = 'form-engine-name-text-input';
private readonly formIdInput: string = 'form-id-text-input';
......@@ -11,8 +12,8 @@ export class AggregationMappingFormE2EComponent {
private readonly saveButton: string = 'save-button';
private readonly cancelButton: string = 'cancel-button';
public getRootElement(): Cypress.Chainable<Element> {
return cy.getTestElement(this.rootElement);
public getRoot(): Cypress.Chainable<Element> {
return cy.getTestElement(this.root);
}
public getNameInput(): Cypress.Chainable<Element> {
......
......@@ -46,7 +46,7 @@ describe('Aggregation Mapping hinzufügen', () => {
it('should show form after button click', () => {
component.getWeitereFelderAuswertenButton().click();
exist(formComponent.getRootElement());
exist(formComponent.getRoot());
});
it('should navigate to aggregation mapping on cancel', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment