2025-05-30 04:35:02 +08:00
|
|
|
import { expect, test } from '@playwright/test';
|
2025-05-03 04:00:14 +08:00
|
|
|
import { askQuestion } from './question-helpers/ask-question';
|
|
|
|
|
|
|
|
const question = 'Who would win in a fight, 100 humans or a gorilla?';
|
|
|
|
|
2025-05-07 03:47:02 +08:00
|
|
|
test.skip(`Question: ${question}`, async ({ page }) => {
|
2025-05-03 04:00:14 +08:00
|
|
|
await askQuestion(page, question);
|
|
|
|
|
|
|
|
//wait for 2 seconds
|
|
|
|
await page.waitForTimeout(2000);
|
|
|
|
const currentURL = page.url();
|
|
|
|
|
|
|
|
//expect to for the text "Reasoned" on the page
|
|
|
|
await expect(page.getByText('Reasoned')).toBeVisible({ timeout: 30000 });
|
|
|
|
|
|
|
|
expect(page.url()).not.toContain('reasoning');
|
|
|
|
expect(currentURL).toBe(currentURL);
|
|
|
|
});
|