Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek committed Apr 12, 2024
1 parent 64b2dcc commit 0ba238c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test-project/src/test/editor/settingsEditor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ describe.only('Settings Editor', function () {
async function waitUntilItemExists(item: string, timeout: number = 10_000): Promise<void> {
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}`);
Expand All @@ -222,6 +223,7 @@ describe.only('Settings Editor', function () {
async function waitUntilItemNotExists(item: string, timeout: number = 10_000): Promise<void> {
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}`);
Expand Down

0 comments on commit 0ba238c

Please sign in to comment.