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

fix file deletion test

parent 4197a1c3
No related branches found
No related tags found
No related merge requests found
......@@ -141,11 +141,11 @@ export class VorgangBescheidWizardE2EComponent {
}
public getFileBescheidValid() {
return cy.getTestElement(this.fileBescheidValid);
return cy.getTestElement(this.locatorRoot).find(`[data-test-id=${this.fileBescheidValid}]`);
}
public getFileAnhangValid() {
return cy.getTestElement(this.fileAnhangValid);
return cy.getTestElement(this.locatorRoot).find(`[data-test-id=${this.fileAnhangValid}]`);
}
public getDeleteButtonOfElement(element: string) {
......
......@@ -13,7 +13,7 @@ import 'cypress-real-events/support';
import { VorgangListE2EComponent } from '../../../components/vorgang/vorgang-list.e2e.component';
import { MainPage, waitForSpinnerToDisappear } from '../../../page-objects/main.po';
import { VorgangPage } from '../../../page-objects/vorgang.po';
import { dropCollections } from '../../../support/cypress-helper';
import { dropCollections, wait } from '../../../support/cypress-helper';
import { contains, enterWith, exist, haveText, notExist } from '../../../support/cypress.util';
import { TEST_FILE_BESCHEID_VALID } from '../../../support/data.util';
import { getAdjustedDateEnglish, getAdjustedDateGerman } from '../../../support/tech.util';
......@@ -131,7 +131,7 @@ describe('Bescheid Wizard', () => {
bescheidWizard.getUeberspringenAbschliessen().click();
notExist(bescheidWizard.getRoot());
cy.wait(1000);
wait(1000);
haveText(
vorgangPage.getVorgangDetailHeader().getStatus(),
vorgangStatusLabelE2E[VorgangStatusE2E.ABGESCHLOSSEN],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment