File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,23 @@ test.describe('History', () => {
3030 const secondOutput = await readFromCodeEditor ( page , 'Execution Output' ) ;
3131 expect ( secondOutput ) . toContain ( 'Hello World!' ) ;
3232 } ) ;
33+
34+ test ( 'Shows automatic script executions' , async ( { page } ) => {
35+ await page . goto ( '/acm' ) ;
36+ await page . getByRole ( 'button' , { name : 'History' } ) . click ( ) ;
37+
38+ const grid = page . locator ( '[role="grid"][aria-label="Executions table"]' ) ;
39+ await expect ( grid ) . toBeVisible ( ) ;
40+ const rows = grid . locator ( '[role="row"]' ) ;
41+
42+ // Search for first automatic script
43+ await page . getByRole ( 'searchbox' , { name : 'Executable' } ) . fill ( 'example/ACME-20_once' ) ;
44+ await expect ( rows . nth ( 1 ) ) . toContainText ( 'Script \'example/ACME-20_once\'' ) ;
45+ await expect ( rows . nth ( 1 ) ) . toContainText ( 'succeeded' ) ;
46+
47+ // Search for second automatic script
48+ await page . getByRole ( 'searchbox' , { name : 'Executable' } ) . fill ( 'example/ACME-21_changed' ) ;
49+ await expect ( rows . nth ( 1 ) ) . toContainText ( 'Script \'example/ACME-21_changed\'' ) ;
50+ await expect ( rows . nth ( 1 ) ) . toContainText ( 'succeeded' ) ;
51+ } ) ;
3352} ) ;
You can’t perform that action at this time.
0 commit comments