-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfoundry.spec.ts
More file actions
47 lines (39 loc) · 1.76 KB
/
foundry.spec.ts
File metadata and controls
47 lines (39 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { test } from '../src/fixtures';
test.describe.configure({ mode: 'serial' });
test.describe('Functions with Python - E2E Tests', () => {
test('should render Hello UI extension', async ({ helloExtensionPage }) => {
await helloExtensionPage.navigateToExtension();
await helloExtensionPage.verifyExtensionRenders();
});
test('should execute Test hello function workflow', async ({ workflowsPage }) => {
test.setTimeout(180000);
await workflowsPage.navigateToWorkflows();
await workflowsPage.executeAndVerifyWorkflow('Test hello function');
await workflowsPage.verifyWorkflowExecutionCompleted();
});
test('should execute Test log-event function workflow', async ({ workflowsPage }) => {
test.setTimeout(180000);
await workflowsPage.navigateToWorkflows();
await workflowsPage.executeAndVerifyWorkflow('Test log-event function');
await workflowsPage.verifyWorkflowExecutionCompleted();
});
test('should execute Test host-details function workflow', async ({ workflowsPage, hostManagementPage }) => {
test.setTimeout(180000);
// Get first available host ID
const hostId = await hostManagementPage.getFirstHostId();
if (!hostId) {
test.skip(true, 'Skipping: No hosts available in CID');
return;
}
// Execute workflow with host ID parameter
await workflowsPage.navigateToWorkflows();
await workflowsPage.executeAndVerifyWorkflow('Test host-details function', {
'Host ID': hostId
});
await workflowsPage.verifyWorkflowExecutionCompleted();
});
test('should render Test servicenow function workflow (without execution)', async ({ workflowsPage }) => {
await workflowsPage.navigateToWorkflows();
await workflowsPage.verifyWorkflowRenders('Test servicenow function');
});
});