From 2a1904419748ebfbd8fcb19f6a1e170ca206f95b Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 27 Mar 2023 17:25:25 +0200
Subject: [PATCH] OZG-3574 Fix E2E type input too fast

---
 goofy-client/apps/goofy-e2e/src/support/cypress.util.ts | 2 +-
 goofy-client/package.json                               | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/goofy-client/apps/goofy-e2e/src/support/cypress.util.ts b/goofy-client/apps/goofy-e2e/src/support/cypress.util.ts
index 96a0734dc1..2da8ecb34c 100644
--- a/goofy-client/apps/goofy-e2e/src/support/cypress.util.ts
+++ b/goofy-client/apps/goofy-e2e/src/support/cypress.util.ts
@@ -61,7 +61,7 @@ export function contains(element: any, containing: string): void {
 }
 
 export function enterWith(element: any, value: any): void {
-	element.clear().type(value + '{enter}')
+	element.clear().type(value + '{enter}', {delay: 20})
 }
 
 export function haveLength(element: any, length: number): void {
diff --git a/goofy-client/package.json b/goofy-client/package.json
index 6235e0f554..5659521754 100644
--- a/goofy-client/package.json
+++ b/goofy-client/package.json
@@ -33,8 +33,8 @@
 		"help": "nx help",
 		"favicon": "real-favicon generate favicon/faviconDescription.json favicon/faviconData.json src/favicon",
 		"cypress:run": "npx cypress run --project apps/goofy-e2e",
-		"cypress:run-main": "npx cypress run --project apps/goofy-e2e --config video=false integrationFolder=./src/integration/main-tests",
-		"cypress:run-ea": "npx cypress run --project apps/goofy-e2e --config video=false integrationFolder=./src/integration/einheitlicher-ansprechpartner",
+		"cypress:run-main": "npx cypress run --project apps/goofy-e2e --config video=false,integrationFolder=./src/integration/main-tests",
+		"cypress:run-ea": "npx cypress run --project apps/goofy-e2e --config video=false,integrationFolder=./src/integration/einheitlicher-ansprechpartner",
 		"cypress:run-minimal": "npx cypress run --project apps/goofy-e2e --config video=false",
 		"cypress:version": "npx cypress version",
 		"cypress:install": "npx cypress install",
-- 
GitLab