Skip to content

Commit caceb87

Browse files
Clean up
1 parent 6297317 commit caceb87

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/e2e/005-manual-scripts.spec.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,30 @@ test.describe('Manual Scripts', () => {
1717
await page.getByRole('button', { name: 'Scripts' }).click();
1818
await expect(page.locator('[role="grid"][aria-label="Script list (manual)"]')).toBeVisible();
1919

20-
await attachScreenshot(page, testInfo, 'Scripts list');
2120
await page.getByText('example/ACME-203_output-csv').click();
22-
await attachScreenshot(page, testInfo, 'Script details');
21+
await expect(page).toHaveURL(/\/acm#\/scripts\/view\/%2Fconf%2Facm%2Fsettings%2Fscript%2Fmanual%2Fexample%2FACME-203_output-csv\.groovy/);
22+
await page.waitForTimeout(1000);
23+
await attachScreenshot(page, testInfo, 'Script Details');
24+
2325
await page.getByRole('button', { name: 'Execute' }).click();
2426

2527
await page.getByRole('textbox', { name: 'Users to' }).fill('5000');
2628
await page.getByRole('textbox', { name: 'First names' }).fill('John\nJane\nJack\nAlice\nBob\nRobert');
2729
await page.getByRole('textbox', { name: 'Last names' }).fill('Doe\nSmith\nBrown\nJohnson\nWhite\nJordan');
28-
await attachScreenshot(page, testInfo, 'Execution inputs filled');
30+
31+
// TODO await attachScreenshot(page, testInfo, 'Inputs Dialog');
2932

3033
await page.getByRole('button', { name: 'Start' }).click();
3134
await expectExecutionProgressBarSucceeded(page);
32-
await attachScreenshot(page, testInfo, 'Execution progress');
3335

3436
const output = await readFromCodeEditor(page, 'Execution Output');
3537
expect(output).toContain('[SUCCESS] Users CSV report generation ended successfully');
36-
await attachScreenshot(page, testInfo, 'Execution output');
38+
await attachScreenshot(page, testInfo, 'Execution Console Output');
3739

3840
await page.getByRole('tab', { name: 'Details' }).click();
3941

4042
await page.waitForTimeout(1000);
41-
await attachScreenshot(page, testInfo, 'Execution details');
43+
await attachScreenshot(page, testInfo, 'Execution Details');
4244

4345
await expectExecutionDetails(page);
4446
await expectExecutionTimings(page);
@@ -62,19 +64,18 @@ test.describe('Manual Scripts', () => {
6264
value: 'Processed 5000 user(s)',
6365
},
6466
]);
65-
await attachScreenshot(page, testInfo, 'Execution outputs');
6667

6768
await page.getByRole('tab', { name: 'Output' }).click();
68-
6969
await page.getByRole('button', { name: 'Review' }).click();
70+
7071
await page.getByRole('tab', { name: 'Texts' }).click();
7172
await expectOutputTexts(page, ['Processed 5000 user(s)']);
72-
await attachScreenshot(page, testInfo, 'Output review texts');
73+
// TODO await attachScreenshot(page, testInfo, 'Outputs Review - Texts');
7374
await page.getByTestId('modal').getByRole('button', { name: 'Close' }).click();
7475

7576
await page.getByRole('button', { name: 'Review' }).click();
7677
await page.getByRole('tab', { name: 'Files' }).click();
77-
await attachScreenshot(page, testInfo, 'Output review files');
78+
// TODO await attachScreenshot(page, testInfo, 'Outputs Review - Files');
7879
await expectOutputFileDownload(page, 'Download Archive', /\.(zip)$/);
7980

8081
await page.getByRole('button', { name: 'Review' }).click();

0 commit comments

Comments
 (0)