We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0a919 commit 5836d2aCopy full SHA for 5836d2a
1 file changed
scripts/eval_scenarios/performance_vague_test.ts
@@ -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