From 0ba238c509e0ec2941fca71922d166f1ff9685d8 Mon Sep 17 00:00:00 2001 From: Dominik Jelinek Date: Fri, 12 Apr 2024 13:46:17 +0200 Subject: [PATCH] tmp Signed-off-by: Dominik Jelinek --- tests/test-project/src/test/editor/settingsEditor.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test-project/src/test/editor/settingsEditor.test.ts b/tests/test-project/src/test/editor/settingsEditor.test.ts index 70490fdf3..853d09a6e 100644 --- a/tests/test-project/src/test/editor/settingsEditor.test.ts +++ b/tests/test-project/src/test/editor/settingsEditor.test.ts @@ -214,6 +214,7 @@ describe.only('Settings Editor', function () { async function waitUntilItemExists(item: string, timeout: number = 10_000): Promise { let values = []; await setting.getDriver().wait(async function () { + setting = await editor.findSetting('Hello World Array', 'Test Project', 'General') as ArraySetting; values = await setting.getValues(); return values.includes(item); }, timeout, `Expected item - '${item}' was not found in list of: ${values}`); @@ -222,6 +223,7 @@ describe.only('Settings Editor', function () { async function waitUntilItemNotExists(item: string, timeout: number = 10_000): Promise { let values = []; await setting.getDriver().wait(async function () { + setting = await editor.findSetting('Hello World Array', 'Test Project', 'General') as ArraySetting; values = await setting.getValues(); return !values.includes(item); }, timeout, `Expected item - '${item}' was found in list of: ${values}`);