@@ -14,18 +14,23 @@ test.describe('Manual Scripts', () => {
1414 test ( 'Execute CSV Generation With I/O' , async ( { page } ) => {
1515 await page . goto ( '/acm' ) ;
1616 await page . getByRole ( 'button' , { name : 'Scripts' } ) . click ( ) ;
17+ await page . screenshot ( { path : 'test-results/screenshots/005-scripts-list.png' } ) ;
1718 await page . getByText ( 'example/ACME-203_output-csv' ) . click ( ) ;
19+ await page . screenshot ( { path : 'test-results/screenshots/005-script-details.png' } ) ;
1820 await page . getByRole ( 'button' , { name : 'Execute' } ) . click ( ) ;
1921
2022 await page . getByRole ( 'textbox' , { name : 'Users to' } ) . fill ( '5000' ) ;
2123 await page . getByRole ( 'textbox' , { name : 'First names' } ) . fill ( 'John\nJane\nJack\nAlice\nBob\nRobert' ) ;
2224 await page . getByRole ( 'textbox' , { name : 'Last names' } ) . fill ( 'Doe\nSmith\nBrown\nJohnson\nWhite\nJordan' ) ;
25+ await page . screenshot ( { path : 'test-results/screenshots/005-execution-inputs-filled.png' } ) ;
2326
2427 await page . getByRole ( 'button' , { name : 'Start' } ) . click ( ) ;
2528 await expectExecutionProgressBarSucceeded ( page ) ;
29+ await page . screenshot ( ) ;
2630
2731 const output = await readFromCodeEditor ( page , 'Execution Output' ) ;
2832 expect ( output ) . toContain ( '[SUCCESS] Users CSV report generation ended successfully' ) ;
33+ await page . screenshot ( { path : 'test-results/screenshots/005-execution-output.png' } ) ;
2934
3035 await page . getByRole ( 'tab' , { name : 'Details' } ) . click ( ) ;
3136
@@ -54,16 +59,19 @@ test.describe('Manual Scripts', () => {
5459 value : 'Processed 5000 user(s)' ,
5560 } ,
5661 ] ) ;
62+ await page . screenshot ( { path : 'test-results/screenshots/005-execution-outputs.png' } ) ;
5763
5864 await page . getByRole ( 'tab' , { name : 'Output' } ) . click ( ) ;
5965
6066 await page . getByRole ( 'button' , { name : 'Review' } ) . click ( ) ;
6167 await page . getByRole ( 'tab' , { name : 'Texts' } ) . click ( ) ;
6268 await expectOutputTexts ( page , [ 'Processed 5000 user(s)' ] ) ;
69+ await page . screenshot ( { path : 'test-results/screenshots/005-output-review-texts.png' } ) ;
6370 await page . getByTestId ( 'modal' ) . getByRole ( 'button' , { name : 'Close' } ) . click ( ) ;
6471
6572 await page . getByRole ( 'button' , { name : 'Review' } ) . click ( ) ;
6673 await page . getByRole ( 'tab' , { name : 'Files' } ) . click ( ) ;
74+ await page . screenshot ( { path : 'test-results/screenshots/005-output-review-files.png' } ) ;
6775 await expectOutputFileDownload ( page , 'Download Archive' , / \. ( z i p ) $ / ) ;
6876
6977 await page . getByRole ( 'button' , { name : 'Review' } ) . click ( ) ;
0 commit comments