2025-05-30 04:35:02 +08:00
import { expect , test } from '@playwright/test' ;
2025-05-03 04:00:14 +08:00
import { askQuestion , checkThatPageWasRedirected } from './question-helpers/ask-question' ;
const question =
'I need you to make a chart for me that shows my top 8 customers in the month of May. Can you make this chart sorted by the customers name? I want to see only 1 file created.' ;
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 ) ;
await checkThatPageWasRedirected ( page , [ 'reasoning' , 'chart' ] ) ;
//expect to for the text "Reasoned" on the page
await expect ( page . getByText ( 'Reasoned' ) ) . toBeVisible ( ) ;
//expect to for the text "Chart" on the page
2025-05-03 05:37:07 +08:00
await expect ( page . getByRole ( 'tab' , { name : 'Chart' } ) ) . toBeVisible ( ) ;
2025-05-03 04:00:14 +08:00
} ) ;