From c73dbccbbcd00c125ef548aeb55161588abc942a Mon Sep 17 00:00:00 2001
From: jonycoo
Date: Fri, 8 Sep 2023 13:13:34 +0200
Subject: [PATCH] Solve CUC-512 finish text input before continue
---
backend/features/step_definitions/stepdefs.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/backend/features/step_definitions/stepdefs.js b/backend/features/step_definitions/stepdefs.js
index b074cd3e8..17ee63e01 100644
--- a/backend/features/step_definitions/stepdefs.js
+++ b/backend/features/step_definitions/stepdefs.js
@@ -249,9 +249,9 @@ When('I insert {string} into the field {string}', async function fillTextField(v
);
await Promise.any(promises)
- .then((elem) => {
- elem.clear();
- elem.sendKeys(value);
+ .then(async (elem) => {
+ await elem.clear();
+ await elem.sendKeys(value);
})
.catch(async (e) => {
await driver.takeScreenshot().then(async (buffer) => {