Skip to content

Commit c11e3b7

Browse files
committed
chore: add vague performance request scenario
1 parent 5e5b746 commit c11e3b7

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
import assert from 'node:assert';
8+
9+
import type {TestScenario} from '../eval_gemini.ts';
10+
11+
export const scenario: TestScenario = {
12+
prompt: 'I want to make my page fast. Page URL is <TEST_URL>.',
13+
maxTurns: 2,
14+
htmlRoute: {
15+
path: '/index.html',
16+
htmlContent: `
17+
<script>for (let i = 0; i < 1000; i++) {console.log("slow");}</script>
18+
`,
19+
},
20+
expectations: calls => {
21+
assert.strictEqual(calls.length, 2);
22+
assert.ok(
23+
calls[0].name === 'navigate_page' || calls[0].name === 'new_page',
24+
);
25+
assert.ok(calls[1].name === 'performance_start_trace');
26+
},
27+
};

0 commit comments

Comments
 (0)