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

OZG-297 e2e

parent 2e600ff1
Branches
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ class AttachmentE2EItem { ...@@ -28,6 +28,7 @@ class AttachmentE2EItem {
public delete(): void { public delete(): void {
this.getRoot().findTestElementWithClass(this.deleteButton$).then(button => { this.getRoot().findTestElementWithClass(this.deleteButton$).then(button => {
button[0].click(); button[0].click();
cy.wait(1000);
}) })
} }
......
...@@ -38,7 +38,7 @@ export class WiedervorlageInVorgangE2EComponent { ...@@ -38,7 +38,7 @@ export class WiedervorlageInVorgangE2EComponent {
} }
public getExpandButton() { public getExpandButton() {
return this.getRoot().findTestElementWithClass(this.locatorExpandButon);; return this.getRoot().findTestElementWithClass(this.locatorExpandButon);
} }
public getStatus(): StatusE2EComponent { public getStatus(): StatusE2EComponent {
......
...@@ -96,6 +96,7 @@ describe('Wiedervorlage attachments', () => { ...@@ -96,6 +96,7 @@ describe('Wiedervorlage attachments', () => {
}) })
it('check attachments in wiedervorlage list', () => { it('check attachments in wiedervorlage list', () => {
wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).getExpandButton();
wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).expandItem(); wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).expandItem();
notExist(wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).getAttachmentList().getAttachment(TEST_FILE).getRoot()); notExist(wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).getAttachmentList().getAttachment(TEST_FILE).getRoot());
...@@ -115,14 +116,4 @@ describe('Wiedervorlage attachments', () => { ...@@ -115,14 +116,4 @@ describe('Wiedervorlage attachments', () => {
wiedervorlagePage.getSubnavigation().navigateBack(); wiedervorlagePage.getSubnavigation().navigateBack();
}) })
}) })
describe('Download attachment', () => {
it('click on attachment', () => {
wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).expandItem();
wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).getAttachmentList().getAttachment(TEST_FILE_WITH_CONTENT).getRoot();
wiedervorlageContainerInVorgang.getWiedervorlage(WIEDERVORLAGE_WITH_ATTACHMENTS_BETREFF).getAttachmentList().getAttachment(TEST_FILE_WITH_CONTENT).download();
})
})
}) })
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment