From d4cb7f3baef2135765a4b42e8aa6603f3680850f Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 3 Nov 2021 10:16:53 +0100
Subject: [PATCH] OZG-1194 adjust e2e test

---
 ...postfach-nachricht-attachments.e2e-spec.ts | 22 ++++---------------
 1 file changed, 4 insertions(+), 18 deletions(-)

diff --git a/goofy-client/apps/goofy-e2e/src/integration/postfach-mail/postfach-nachricht-attachments.e2e-spec.ts b/goofy-client/apps/goofy-e2e/src/integration/postfach-mail/postfach-nachricht-attachments.e2e-spec.ts
index d7b6c21c55..a0063e9a40 100644
--- a/goofy-client/apps/goofy-e2e/src/integration/postfach-mail/postfach-nachricht-attachments.e2e-spec.ts
+++ b/goofy-client/apps/goofy-e2e/src/integration/postfach-mail/postfach-nachricht-attachments.e2e-spec.ts
@@ -44,7 +44,9 @@ describe('Postfach Nachrichten Attachments', () => {
 		exist(vorgangList.getRoot());
 	})
 
-	describe('download attachment from vorgang detail', () => {
+	describe('download attachment from postfach nachrichten page', () => {
+
+		const listItem: PostfachMailListItem = postfachPage.getListItem(postfachMailReply.subject);
 
 		it('should show vorgang on navigation', () => {
 			vorgangList.getListItem(vorgang.name).getRoot().click();
@@ -52,22 +54,6 @@ describe('Postfach Nachrichten Attachments', () => {
 			exist(vorgangPage.getVorgangDetailHeader().getRoot());
 		})
 
-		it('should show postfach nachrichten attachments', () => {
-			exist(vorgangPage.getPostfachMailcontainer().getAttachments());
-		})
-
-		it('should download attachment', () => {
-			postfachMail.getListItem(postfachMailReply.subject).downloadAttachment(binaryFileWithContent.file.name);
-			vorgangPage.waitForSpinnerToDisappear();
-
-			exist(readFileFromDownloads(binaryFileWithContent.file.name));
-		})
-	})
-
-	describe('download attachment from postfach nachrichten page', () => {
-
-		const listItem: PostfachMailListItem = postfachPage.getListItem(postfachMailReply.subject);
-
 		it('should navigate on click on subject', () => {
 			postfachMail.getListItem(postfachMailReply.subject).getRoot().click();
 
@@ -86,7 +72,7 @@ describe('Postfach Nachrichten Attachments', () => {
 		})
 	})
 
-	describe.skip('navigate back', () => {
+	describe('navigate back', () => {
 
 		it('should show vorgang detail', () => {
 			postfachSubnavigation.getBackButton().click();
-- 
GitLab