Skip to content

Commit 77d41d3

Browse files
Automatic script test
1 parent b5f257e commit 77d41d3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

test/e2e/004-history.spec.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)