Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Refactor probe call to use args object

16Miku052c658ab19c
diff --git a/test/fixtures/message-recipient-navigation.mjs b/test/fixtures/message-recipient-navigation.mjs
index 6263ca2e7..0d85b5a61 100644
--- a/test/fixtures/message-recipient-navigation.mjs
+++ b/test/fixtures/message-recipient-navigation.mjs
@@ -133,8 +133,10 @@ export function registerMessageRecipientNavigationFixtures({
'/safety/go/?url=https%3A%2F%2Fm.linkedin.com.%2Fmessaging%2Fsend',
]) {
await page.locator('#safety-portfolio').evaluate((el, value) => el.setAttribute('href', value), href);
- const result = await probe('click', { text: 'portfolio.example', textMatch: 'exact' });
+ const args = { text: 'portfolio.example', textMatch: 'exact' };
+ const result = await probe('click', args);
assert.notEqual(result.navigation, true, `${href}: ${JSON.stringify(result)}`);
+ assert.equal((await guard('click', args))?.noDispatch, true, `${href}: recipient guard must fail closed`);
}
});