Skip to content

Commit 34b776f

Browse files
fix: test
1 parent aefed07 commit 34b776f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/source/browser/controllable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ abstract class ControllableBase {
4545
};
4646

4747
public waitForSelTestState = async (state: 'ready' | 'working' | 'waiting' | 'closed', timeout = TIMEOUT_TEST_STATE_SATISFY) => {
48-
await this.waitAll(`[data-test-state="${state}"]`, { timeout, visible: undefined });
48+
await this.waitAny(`[data-test-state="${state}"]`, { timeout, visible: undefined });
4949
};
5050

5151
public waitUntilViewLoaded = async (timeout = TIMEOUT_PAGE_LOAD) => {
5252
try {
53-
await this.waitAll(`[data-test-view-state="loaded"]`, { timeout, visible: undefined });
53+
await this.waitAny(`[data-test-view-state="loaded"]`, { timeout, visible: undefined });
5454
} catch {
5555
throw new Error(`View didn't load within ${timeout}s at ${this.target.url()}`);
5656
}

0 commit comments

Comments
 (0)