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}`);