chore(extension): do not show tab selector for browser_navigate (#923)

This commit is contained in:
Yury Semikhatsky
2025-08-22 10:02:09 -07:00
committed by GitHub
parent fb65bc7559
commit 64af5f8763
8 changed files with 52 additions and 26 deletions

View File

@@ -152,7 +152,8 @@ for (const [mode, startClientMethod] of [
});
const selectorPage = await confirmationPagePromise;
await selectorPage.locator('.tab-item', { hasText: 'Playwright MCP Extension' }).getByRole('button', { name: 'Connect' }).click();
// For browser_navigate command, the UI shows Allow/Reject buttons instead of tab selector
await selectorPage.getByRole('button', { name: 'Allow' }).click();
expect(await navigateResponse).toHaveResponse({
pageState: expect.stringContaining(`- generic [active] [ref=e1]: Hello, world!`),