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

OZG-5981 fixed test

parent 0d079165
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,6 @@
* Die sprachspezifischen Genehmigungen und Beschränkungen
* unter der Lizenz sind dem Lizenztext zu entnehmen.
*/
import { getTestElement } from '../../support/cypress-helper';
import { convertToDataTestId } from '../../support/tech.util';
export class AttachmentContainerE2EComponent {
......@@ -39,7 +38,7 @@ export class AttachmentContainerE2EComponent {
export class AttachmentListE2EComponent {
private readonly locatorRoot: string = 'file-list';
private readonly downloadAttachmentsButton: string = 'download-button';
private readonly downloadAttachmentsButton: string = 'download-archive';
public getRoot() {
return cy.getTestElement(this.locatorRoot);
......@@ -50,11 +49,11 @@ export class AttachmentListE2EComponent {
}
public getDownloadAttachmentsButton(): Cypress.Chainable<JQuery<HTMLElement>> {
return getTestElement(this.downloadAttachmentsButton);
return cy.getTestElementWithClass(this.downloadAttachmentsButton);
}
public downloadAttachments() {
return this.getDownloadAttachmentsButton().should('exist').click();
public downloadAttachments(): Cypress.Chainable<any> {
return this.getDownloadAttachmentsButton().click();
}
}
......
......@@ -38,7 +38,7 @@ type ButtonVariants = VariantProps<typeof buttonVariants>;
[disabled]="isLoading"
[attr.aria-disabled]="isLoading"
[attr.aria-label]="text"
data-test-id="download-button"
[attr.data-test-id]="dataTestId"
(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