Skip to content

Chrome DevTools for coding agents

test: delete a flaky test (#2653)

Alex Rudenkoe7ecca4d1cd8
diff --git a/tests/tools/script.test.ts b/tests/tools/script.test.ts
index 2b103bec..c92811e2 100644
--- a/tests/tools/script.test.ts
+++ b/tests/tools/script.test.ts
@@ -20,7 +20,6 @@ import {serverHooks} from '../server.js';
import {
assertNoServiceWorkerReported,
extractExtensionId,
- getTextContent,
html,
withMcpContext,
} from '../utils.js';
@@ -73,30 +72,6 @@ describe('script', () => {
}
});
});
- it('still awaits a navigation when waitForStableDom is false', async () => {
- await withMcpContext(async (response, context) => {
- server.addHtmlRoute('/nav-target', html`<main>navigated</main>`);
- const url = server.getRoute('/nav-target');
- await evaluateScript().handler(
- {
- params: {
- function: `() => {
- location.href = '${url}';
- }`,
- waitForStableDom: false,
- },
- },
- response,
- context,
- );
- const result = await response.handle(context);
- const textContent = getTextContent(result.content[0]);
- assert.ok(
- textContent.includes(`Page navigated to ${url}`),
- `Expected the navigation to be awaited and reported, got: ${textContent}`,
- );
- });
- });
it('runs in selected page', async () => {
await withMcpContext(async (response, context) => {
await evaluateScript().handler(