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

update test

parent 15eff80f
Branches
Tags
No related merge requests found
......@@ -42,7 +42,7 @@ export class VorgangFormularDatenE2EComponent {
private readonly fileListHeader: string = 'file-list';
private readonly attachmentListHeader: string = 'attachment-list';
private readonly downloadAttachmentsButton: string = 'download-archive';
private readonly downloadAttachmentsButton: string = 'download-button';
private readonly antragdatenTab: number = 0;
private readonly metadatenTab: number = 9;
......@@ -120,6 +120,6 @@ export class VorgangFormularDatenE2EComponent {
}
public getDownloadAttachmentsButton(): Cypress.Chainable<JQuery<HTMLElement>> {
return this.getRoot().findTestElementWithClass(this.downloadAttachmentsButton);
return getTestElement(this.downloadAttachmentsButton);
}
}
......@@ -153,8 +153,6 @@ describe('Dateien Tab', () => {
it('should download attachments', () => {
deleteDownloadFolder().then(() => {
vorgangDatenFormular.getDownloadAttachmentsButton().click();
waitForSpinnerToDisappear();
cy.wait(1000);
getDownloadFiles().then((files) => {
unzipDownloadFile(files[0]);
......@@ -162,7 +160,6 @@ describe('Dateien Tab', () => {
countDownloadFiles().then((count) => {
expect(count).to.eq(3);
//ggf Namen der Files prüfen
});
});
});
......
......@@ -37,7 +37,7 @@ type ButtonVariants = VariantProps<typeof buttonVariants>;
[disabled]="isLoading"
[attr.aria-disabled]="isLoading"
[attr.aria-label]="text"
[attr.data-test-id]="dataTestId"
data-test-id="download-button"
(click)="clickEmitter.emit()"
>
<ng-content *ngIf="!isLoading" select="[icon]"></ng-content>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment