From 31ea5fa2a06ff58d15c4a519b923a5e1dfc68903 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Sun, 22 Jan 2023 16:21:25 +0100
Subject: [PATCH] OZG-770 add more waits for spinner

---
 .../kommentar-attachment/kommentar-attachment.e2e-spec.ts     | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/goofy-client/apps/goofy-e2e/src/integration/main-tests/kommentar-attachment/kommentar-attachment.e2e-spec.ts b/goofy-client/apps/goofy-e2e/src/integration/main-tests/kommentar-attachment/kommentar-attachment.e2e-spec.ts
index aae9ce6f00..2ca0cd84bc 100644
--- a/goofy-client/apps/goofy-e2e/src/integration/main-tests/kommentar-attachment/kommentar-attachment.e2e-spec.ts
+++ b/goofy-client/apps/goofy-e2e/src/integration/main-tests/kommentar-attachment/kommentar-attachment.e2e-spec.ts
@@ -74,6 +74,7 @@ describe('Kommentar attachments', () => {
 
 		it('should show button for uploading attachments when creating new Kommentar', () => {
 			kommentarContainer.getHinzufuegenButton().click();
+			waitForSpinnerToDisappear();
 
 			exist(attachmentContainer.getUploadInput());
 		});
@@ -102,6 +103,7 @@ describe('Kommentar attachments', () => {
 	describe('Delete attachements', () => {
 		it('should delete attachments', () => {
 			kommentarContainer.getRoot().click();
+			waitForSpinnerToDisappear();
 
 			attachmentList.getItem(TEST_FILE_WITH_CONTENT).getDeleteButton().click();
 			attachmentList.getItem(TEST_FILE_WITHOUT_CONTENT).getDeleteButton().click();
@@ -125,6 +127,8 @@ describe('Kommentar attachments', () => {
 	describe('Download Kommentar attachments', () => {
 		it('should upload attachment', () => {
 			kommentarContainer.getRoot().click();
+			waitForSpinnerToDisappear();
+
 			uploadFile(attachmentContainer.getUploadInput(), TEST_FILE_WITH_CONTENT);
 			waitForSpinnerToDisappear();
 
-- 
GitLab