aboutsummaryrefslogtreecommitdiff
path: root/test-suite/unit/automation-target.test.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'test-suite/unit/automation-target.test.mjs')
-rw-r--r--test-suite/unit/automation-target.test.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-suite/unit/automation-target.test.mjs b/test-suite/unit/automation-target.test.mjs
index f838fa6..7f46597 100644
--- a/test-suite/unit/automation-target.test.mjs
+++ b/test-suite/unit/automation-target.test.mjs
@@ -345,7 +345,7 @@ async function run() {
ok(state.tabs.has(state.userArticle.id), "tab.close: user's active tab was NOT closed");
ok(state.windows.size === windowsBefore && state.tabs.size === tabsBefore, "tab.close: did not spawn a throwaway tab/window");
- await throwsWith(() => w.dispatch("tab.activate", { sessionKey: SK }), /no automation tab yet|Pass targetId/, "tab.activate: errors with no target/owned target");
+ await throwsWith(() => w.dispatch("tab.activate", { sessionKey: SK, foreground: true }), /no automation tab yet|Pass targetId/, "tab.activate: errors with no target/owned target");
// Once an automation target exists, management actions operate on it (not on the user tab).
const nav = await w.dispatch("page.navigate", { url: "https://pi.test/manage", waitUntilLoad: false, sessionKey: SK });