@camunda/e2e-test-suite 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -2
- package/dist/pages/8.5/ModelerCreatePage.d.ts +1 -1
- package/dist/pages/8.5/ModelerCreatePage.js +15 -15
- package/dist/pages/8.6/ModelerCreatePage.d.ts +2 -1
- package/dist/pages/8.6/ModelerCreatePage.js +30 -16
- package/dist/pages/8.6/UtilitiesPage.d.ts +1 -3
- package/dist/pages/8.6/UtilitiesPage.js +5 -21
- package/dist/pages/8.7/ConsoleOrganizationPage.js +2 -1
- package/dist/pages/8.7/IdpCreatePage.d.ts +1 -1
- package/dist/pages/8.7/IdpCreatePage.js +16 -4
- package/dist/pages/8.7/ModelerCreatePage.d.ts +5 -5
- package/dist/pages/8.7/ModelerCreatePage.js +27 -30
- package/dist/pages/8.7/ModelerHomePage.d.ts +2 -0
- package/dist/pages/8.7/ModelerHomePage.js +26 -2
- package/dist/pages/8.8/ConsoleOrganizationPage.d.ts +9 -5
- package/dist/pages/8.8/ConsoleOrganizationPage.js +59 -16
- package/dist/pages/8.8/ModelerCreatePage.d.ts +5 -3
- package/dist/pages/8.8/ModelerCreatePage.js +35 -46
- package/dist/pages/8.8/OperateProcessesPage.js +1 -1
- package/dist/pages/8.8/UtilitiesPage.js +1 -1
- package/dist/pages/SM-8.5/ModelerCreatePage.js +1 -0
- package/dist/pages/SM-8.7/ClusterPage.js +1 -1
- package/dist/pages/SM-8.7/ModelerHomePage.js +1 -1
- package/dist/pages/SM-8.7/NavigationPage.js +1 -1
- package/dist/tests/8.6/connectors-user-flows.spec.js +3 -3
- package/dist/tests/8.6/web-modeler-user-flows.spec.js +3 -3
- package/dist/tests/8.7/hto-user-flows.spec.js +0 -3
- package/dist/tests/8.7/idp-user-flows.spec.js +1 -0
- package/dist/tests/8.7/web-modeler-user-flows.spec.js +2 -2
- package/dist/tests/8.8/aws-cluster-user-flows.spec.js +1 -1
- package/dist/tests/8.8/connectors-user-flows.spec.js +0 -2
- package/dist/tests/8.8/console-user-flows.spec.js +1 -3
- package/dist/tests/8.8/hto-user-flows.spec.js +4 -5
- package/dist/tests/8.8/rba-enabled-user-flows.spec.js +5 -3
- package/dist/tests/8.8/web-modeler-user-flows.spec.js +29 -39
- package/dist/tests/SM-8.5/mt-enabled-user-flows.spec.js +18 -0
- package/dist/tests/SM-8.7/mt-enabled-user-flows.spec.js +10 -3
- package/dist/tests/SM-8.8/optimize-user-flows.spec.js +7 -7
- package/package.json +1 -1
- package/dist/fixtures/8.4.d.ts +0 -57
- package/dist/fixtures/8.4.js +0 -150
- package/dist/fixtures/SM-8.4.d.ts +0 -55
- package/dist/fixtures/SM-8.4.js +0 -132
- package/dist/pages/8.4/AppsPage.d.ts +0 -33
- package/dist/pages/8.4/AppsPage.js +0 -333
- package/dist/pages/8.4/ClusterDetailsPage.d.ts +0 -59
- package/dist/pages/8.4/ClusterDetailsPage.js +0 -319
- package/dist/pages/8.4/ClusterPage.d.ts +0 -50
- package/dist/pages/8.4/ClusterPage.js +0 -334
- package/dist/pages/8.4/ClusterSecretsPage.d.ts +0 -21
- package/dist/pages/8.4/ClusterSecretsPage.js +0 -105
- package/dist/pages/8.4/ConnectorMarketplacePage.d.ts +0 -18
- package/dist/pages/8.4/ConnectorMarketplacePage.js +0 -59
- package/dist/pages/8.4/ConnectorSettingsPage.d.ts +0 -28
- package/dist/pages/8.4/ConnectorSettingsPage.js +0 -72
- package/dist/pages/8.4/ConnectorTemplatePage.d.ts +0 -11
- package/dist/pages/8.4/ConnectorTemplatePage.js +0 -34
- package/dist/pages/8.4/ConsoleOrganizationPage.d.ts +0 -69
- package/dist/pages/8.4/ConsoleOrganizationPage.js +0 -366
- package/dist/pages/8.4/FormJsPage.d.ts +0 -14
- package/dist/pages/8.4/FormJsPage.js +0 -44
- package/dist/pages/8.4/HomePage.d.ts +0 -27
- package/dist/pages/8.4/HomePage.js +0 -87
- package/dist/pages/8.4/LoginPage.d.ts +0 -30
- package/dist/pages/8.4/LoginPage.js +0 -83
- package/dist/pages/8.4/ModelerCreatePage.d.ts +0 -145
- package/dist/pages/8.4/ModelerCreatePage.js +0 -660
- package/dist/pages/8.4/ModelerHomePage.d.ts +0 -39
- package/dist/pages/8.4/ModelerHomePage.js +0 -153
- package/dist/pages/8.4/ModelerUserInvitePage.d.ts +0 -27
- package/dist/pages/8.4/ModelerUserInvitePage.js +0 -83
- package/dist/pages/8.4/OperateHomePage.d.ts +0 -21
- package/dist/pages/8.4/OperateHomePage.js +0 -53
- package/dist/pages/8.4/OperateProcessInstancePage.d.ts +0 -14
- package/dist/pages/8.4/OperateProcessInstancePage.js +0 -35
- package/dist/pages/8.4/OperateProcessesPage.d.ts +0 -22
- package/dist/pages/8.4/OperateProcessesPage.js +0 -80
- package/dist/pages/8.4/OptimizeCollectionsPage.d.ts +0 -15
- package/dist/pages/8.4/OptimizeCollectionsPage.js +0 -44
- package/dist/pages/8.4/OptimizeDashboardPage.d.ts +0 -8
- package/dist/pages/8.4/OptimizeDashboardPage.js +0 -48
- package/dist/pages/8.4/OptimizeHomePage.d.ts +0 -12
- package/dist/pages/8.4/OptimizeHomePage.js +0 -32
- package/dist/pages/8.4/OptimizeReportPage.d.ts +0 -49
- package/dist/pages/8.4/OptimizeReportPage.js +0 -160
- package/dist/pages/8.4/SettingsPage.d.ts +0 -10
- package/dist/pages/8.4/SettingsPage.js +0 -41
- package/dist/pages/8.4/SignUpPage.d.ts +0 -44
- package/dist/pages/8.4/SignUpPage.js +0 -137
- package/dist/pages/8.4/TaskDetailsPage.d.ts +0 -64
- package/dist/pages/8.4/TaskDetailsPage.js +0 -198
- package/dist/pages/8.4/TaskPanelPage.d.ts +0 -19
- package/dist/pages/8.4/TaskPanelPage.js +0 -61
- package/dist/pages/8.4/TaskProcessesPage.d.ts +0 -11
- package/dist/pages/8.4/TaskProcessesPage.js +0 -31
- package/dist/pages/8.4/UtilitiesPage.d.ts +0 -33
- package/dist/pages/8.4/UtilitiesPage.js +0 -312
- package/dist/pages/SM-8.4/ConnectorMarketplacePage.d.ts +0 -16
- package/dist/pages/SM-8.4/ConnectorMarketplacePage.js +0 -48
- package/dist/pages/SM-8.4/ConnectorSettingsPage.d.ts +0 -28
- package/dist/pages/SM-8.4/ConnectorSettingsPage.js +0 -82
- package/dist/pages/SM-8.4/ConsoleHomePage.d.ts +0 -7
- package/dist/pages/SM-8.4/ConsoleHomePage.js +0 -14
- package/dist/pages/SM-8.4/ConsoleOrganizationPage.d.ts +0 -22
- package/dist/pages/SM-8.4/ConsoleOrganizationPage.js +0 -68
- package/dist/pages/SM-8.4/FormJsPage.d.ts +0 -13
- package/dist/pages/SM-8.4/FormJsPage.js +0 -30
- package/dist/pages/SM-8.4/HomePage.d.ts +0 -20
- package/dist/pages/SM-8.4/HomePage.js +0 -49
- package/dist/pages/SM-8.4/IdentityPage.d.ts +0 -56
- package/dist/pages/SM-8.4/IdentityPage.js +0 -219
- package/dist/pages/SM-8.4/IdentityTenantPage.d.ts +0 -46
- package/dist/pages/SM-8.4/IdentityTenantPage.js +0 -173
- package/dist/pages/SM-8.4/IdentityUsersPage.d.ts +0 -90
- package/dist/pages/SM-8.4/IdentityUsersPage.js +0 -505
- package/dist/pages/SM-8.4/LoginPage.d.ts +0 -16
- package/dist/pages/SM-8.4/LoginPage.js +0 -50
- package/dist/pages/SM-8.4/ModelerCreatePage.d.ts +0 -142
- package/dist/pages/SM-8.4/ModelerCreatePage.js +0 -648
- package/dist/pages/SM-8.4/ModelerHomePage.d.ts +0 -35
- package/dist/pages/SM-8.4/ModelerHomePage.js +0 -139
- package/dist/pages/SM-8.4/NavigationPage.d.ts +0 -26
- package/dist/pages/SM-8.4/NavigationPage.js +0 -97
- package/dist/pages/SM-8.4/OperateHomePage.d.ts +0 -21
- package/dist/pages/SM-8.4/OperateHomePage.js +0 -63
- package/dist/pages/SM-8.4/OperateProcessInstancePage.d.ts +0 -23
- package/dist/pages/SM-8.4/OperateProcessInstancePage.js +0 -105
- package/dist/pages/SM-8.4/OperateProcessesPage.d.ts +0 -22
- package/dist/pages/SM-8.4/OperateProcessesPage.js +0 -90
- package/dist/pages/SM-8.4/OptimizeCollectionsPage.d.ts +0 -15
- package/dist/pages/SM-8.4/OptimizeCollectionsPage.js +0 -50
- package/dist/pages/SM-8.4/OptimizeDashboardPage.d.ts +0 -15
- package/dist/pages/SM-8.4/OptimizeDashboardPage.js +0 -59
- package/dist/pages/SM-8.4/OptimizeHomePage.d.ts +0 -17
- package/dist/pages/SM-8.4/OptimizeHomePage.js +0 -56
- package/dist/pages/SM-8.4/OptimizeReportPage.d.ts +0 -48
- package/dist/pages/SM-8.4/OptimizeReportPage.js +0 -157
- package/dist/pages/SM-8.4/SettingsPage.d.ts +0 -10
- package/dist/pages/SM-8.4/SettingsPage.js +0 -20
- package/dist/pages/SM-8.4/TaskDetailsPage.d.ts +0 -61
- package/dist/pages/SM-8.4/TaskDetailsPage.js +0 -175
- package/dist/pages/SM-8.4/TaskPanelPage.d.ts +0 -22
- package/dist/pages/SM-8.4/TaskPanelPage.js +0 -77
- package/dist/pages/SM-8.4/TaskProcessesPage.d.ts +0 -11
- package/dist/pages/SM-8.4/TaskProcessesPage.js +0 -31
- package/dist/pages/SM-8.4/UtilitiesPage.d.ts +0 -19
- package/dist/pages/SM-8.4/UtilitiesPage.js +0 -175
- package/dist/tests/8.4/connectors-user-flows.spec.d.ts +0 -1
- package/dist/tests/8.4/connectors-user-flows.spec.js +0 -407
- package/dist/tests/8.4/console-user-flows.spec.d.ts +0 -1
- package/dist/tests/8.4/console-user-flows.spec.js +0 -192
- package/dist/tests/8.4/hto-user-flows.spec.d.ts +0 -1
- package/dist/tests/8.4/hto-user-flows.spec.js +0 -186
- package/dist/tests/8.4/login.spec.d.ts +0 -1
- package/dist/tests/8.4/login.spec.js +0 -27
- package/dist/tests/8.4/navigation.spec.d.ts +0 -1
- package/dist/tests/8.4/navigation.spec.js +0 -62
- package/dist/tests/8.4/optimize-user-flows.spec.d.ts +0 -1
- package/dist/tests/8.4/optimize-user-flows.spec.js +0 -266
- package/dist/tests/8.4/rba-enabled-user-flows.spec.d.ts +0 -1
- package/dist/tests/8.4/rba-enabled-user-flows.spec.js +0 -306
- package/dist/tests/8.4/smoke-tests.spec.d.ts +0 -1
- package/dist/tests/8.4/smoke-tests.spec.js +0 -174
- package/dist/tests/8.4/test-setup.spec.d.ts +0 -1
- package/dist/tests/8.4/test-setup.spec.js +0 -61
- package/dist/tests/8.4/web-modeler-user-flows.spec.d.ts +0 -1
- package/dist/tests/8.4/web-modeler-user-flows.spec.js +0 -611
- package/dist/tests/SM-8.4/connectors-user-flows.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/connectors-user-flows.spec.js +0 -224
- package/dist/tests/SM-8.4/hto-user-flows.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/hto-user-flows.spec.js +0 -308
- package/dist/tests/SM-8.4/mt-enabled-user-flows.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/mt-enabled-user-flows.spec.js +0 -537
- package/dist/tests/SM-8.4/optimize-user-flows.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/optimize-user-flows.spec.js +0 -182
- package/dist/tests/SM-8.4/rba-enabled-user-flows.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/rba-enabled-user-flows.spec.js +0 -250
- package/dist/tests/SM-8.4/smoke-tests.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/smoke-tests.spec.js +0 -148
- package/dist/tests/SM-8.4/test-setup.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/test-setup.spec.js +0 -105
- package/dist/tests/SM-8.4/web-modeler-user-flows.spec.d.ts +0 -1
- package/dist/tests/SM-8.4/web-modeler-user-flows.spec.js +0 -125
|
@@ -1,648 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelerCreatePage = void 0;
|
|
4
|
-
const test_1 = require("@playwright/test");
|
|
5
|
-
const ConnectorMarketplacePage_1 = require("./ConnectorMarketplacePage");
|
|
6
|
-
const sleep_1 = require("../../utils/sleep");
|
|
7
|
-
class ModelerCreatePage {
|
|
8
|
-
page;
|
|
9
|
-
generalPanel;
|
|
10
|
-
idInput;
|
|
11
|
-
startEventElement;
|
|
12
|
-
appendTaskButton;
|
|
13
|
-
changeTypeButton;
|
|
14
|
-
userTaskOption;
|
|
15
|
-
appendEndEventButton;
|
|
16
|
-
startInstanceMainButton;
|
|
17
|
-
startInstanceSubButton;
|
|
18
|
-
viewProcessInstanceLink;
|
|
19
|
-
nameInput;
|
|
20
|
-
diagramBreadcrumb;
|
|
21
|
-
editDiagramNameButton;
|
|
22
|
-
diagramNameInput;
|
|
23
|
-
variableInput;
|
|
24
|
-
embedFormButton;
|
|
25
|
-
embedButton;
|
|
26
|
-
newForm;
|
|
27
|
-
deployMainButton;
|
|
28
|
-
deploySubButton;
|
|
29
|
-
cancelButton;
|
|
30
|
-
restConnectorOption;
|
|
31
|
-
marketPlaceButton;
|
|
32
|
-
clusterEndpointTextbox;
|
|
33
|
-
clientIdTextbox;
|
|
34
|
-
clientSecretTextbox;
|
|
35
|
-
oauthUrlTextbox;
|
|
36
|
-
audienceTextbox;
|
|
37
|
-
rememberCredentialsCheckbox;
|
|
38
|
-
oAuthCheckbox;
|
|
39
|
-
webhookStartEventConnectorOption;
|
|
40
|
-
webhookIdInput;
|
|
41
|
-
modelerCanvas;
|
|
42
|
-
intermediateBoundaryEvent;
|
|
43
|
-
intermediateWebhookConnectorOption;
|
|
44
|
-
correlationKeyProcessInput;
|
|
45
|
-
correlationKeyPayloadInput;
|
|
46
|
-
designTab;
|
|
47
|
-
implementTab;
|
|
48
|
-
candidateUsersInput;
|
|
49
|
-
assigneeInput;
|
|
50
|
-
appendGatewayButton;
|
|
51
|
-
parallelGatewayOption;
|
|
52
|
-
assignmentSection;
|
|
53
|
-
priorityInput;
|
|
54
|
-
firstPlacedGateway;
|
|
55
|
-
secondPlacedGateway;
|
|
56
|
-
connectToOtherElementButton;
|
|
57
|
-
canvas;
|
|
58
|
-
appendElementButton;
|
|
59
|
-
firstElement;
|
|
60
|
-
secondElement;
|
|
61
|
-
candidateGroupsInput;
|
|
62
|
-
thirdElement;
|
|
63
|
-
dialog;
|
|
64
|
-
implementationOptions;
|
|
65
|
-
implementationSection;
|
|
66
|
-
tenantIdInput;
|
|
67
|
-
timerEventOption;
|
|
68
|
-
timerEventSettings;
|
|
69
|
-
timerType;
|
|
70
|
-
timerValue;
|
|
71
|
-
constructor(page) {
|
|
72
|
-
this.page = page;
|
|
73
|
-
this.generalPanel = page.locator('[data-group-id="group-general"]');
|
|
74
|
-
this.idInput = page.getByLabel('ID', { exact: true });
|
|
75
|
-
this.startEventElement = page.locator('[data-element-id="StartEvent_1"]');
|
|
76
|
-
this.appendTaskButton = page.getByTitle('Append task');
|
|
77
|
-
this.changeTypeButton = page.getByTitle('Change type').first();
|
|
78
|
-
this.userTaskOption = page.getByRole('listitem', { name: 'User Task' });
|
|
79
|
-
this.appendEndEventButton = page.getByTitle('Append end event');
|
|
80
|
-
this.startInstanceMainButton = page.getByRole('button', { name: 'Run' });
|
|
81
|
-
this.startInstanceSubButton = page
|
|
82
|
-
.getByLabel('Start instance')
|
|
83
|
-
.getByRole('button', { name: 'Run' });
|
|
84
|
-
this.viewProcessInstanceLink = page.getByRole('link', {
|
|
85
|
-
name: 'View process instance',
|
|
86
|
-
});
|
|
87
|
-
this.nameInput = page.getByLabel('Name', { exact: true });
|
|
88
|
-
this.diagramBreadcrumb = page.locator('[data-test="breadcrumb-diagram"]');
|
|
89
|
-
this.editDiagramNameButton = page.getByText('Edit name');
|
|
90
|
-
this.diagramNameInput = page.locator('[data-test="editable-input"]');
|
|
91
|
-
this.variableInput = page.getByLabel('Variables');
|
|
92
|
-
this.embedFormButton = page.getByRole('button', {
|
|
93
|
-
name: 'Click to add a form',
|
|
94
|
-
});
|
|
95
|
-
this.embedButton = page.locator('[data-test="confirm-move"]');
|
|
96
|
-
this.newForm = page.locator('[data-test="item-New Form"]');
|
|
97
|
-
this.deployMainButton = page.locator('[data-test="deploy-button"]');
|
|
98
|
-
this.deploySubButton = page
|
|
99
|
-
.getByLabel('Deploy diagram')
|
|
100
|
-
.getByRole('button', { name: 'Deploy' });
|
|
101
|
-
this.cancelButton = page.getByRole('button', { name: 'Cancel' });
|
|
102
|
-
this.restConnectorOption = page.getByRole('listitem', {
|
|
103
|
-
name: 'REST Outbound Connector',
|
|
104
|
-
});
|
|
105
|
-
this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
|
|
106
|
-
this.clusterEndpointTextbox = page.getByLabel('Cluster endpoint');
|
|
107
|
-
this.clientIdTextbox = page.getByLabel('Client ID');
|
|
108
|
-
this.clientSecretTextbox = page.getByLabel('Client secret');
|
|
109
|
-
this.oauthUrlTextbox = page.getByLabel('OAuth Token URL');
|
|
110
|
-
this.audienceTextbox = page.getByLabel('OAuth Audience');
|
|
111
|
-
this.rememberCredentialsCheckbox = page.getByText('Remember credentials');
|
|
112
|
-
this.oAuthCheckbox = page.getByLabel('OAuth', { exact: true });
|
|
113
|
-
this.webhookStartEventConnectorOption = page.getByRole('listitem', {
|
|
114
|
-
name: 'Webhook Start Event Connector',
|
|
115
|
-
exact: true,
|
|
116
|
-
});
|
|
117
|
-
this.webhookIdInput = page.getByLabel('Webhook ID');
|
|
118
|
-
this.modelerCanvas = page.locator('[data-test="modeler"] rect').first();
|
|
119
|
-
this.intermediateBoundaryEvent = page.getByTitle('Append intermediate/boundary');
|
|
120
|
-
this.intermediateWebhookConnectorOption = page.getByRole('listitem', {
|
|
121
|
-
name: 'Webhook Intermediate Event',
|
|
122
|
-
});
|
|
123
|
-
this.correlationKeyPayloadInput = page
|
|
124
|
-
.getByText(/^Correlation key \(payload\)=Opened in editor$/)
|
|
125
|
-
.getByRole('textbox');
|
|
126
|
-
this.correlationKeyProcessInput = page
|
|
127
|
-
.getByText(/^Correlation key \(process\)=Opened in editor$/)
|
|
128
|
-
.getByRole('textbox');
|
|
129
|
-
this.designTab = page.getByTitle('Design');
|
|
130
|
-
this.implementTab = page.getByTitle('Implement');
|
|
131
|
-
this.candidateUsersInput = page.getByRole('textbox', {
|
|
132
|
-
name: 'candidate users',
|
|
133
|
-
});
|
|
134
|
-
this.assigneeInput = page.getByRole('textbox', { name: 'assignee' });
|
|
135
|
-
this.appendGatewayButton = page.getByTitle('append gateway');
|
|
136
|
-
this.parallelGatewayOption = page.getByText('parallel gateway');
|
|
137
|
-
this.assignmentSection = page.locator('[data-group-id="group-assignmentDefinition"]');
|
|
138
|
-
this.priorityInput = page.getByRole('textbox', { name: 'priority' });
|
|
139
|
-
this.firstPlacedGateway = page
|
|
140
|
-
.locator('[data-element-id*="Gateway"]')
|
|
141
|
-
.first();
|
|
142
|
-
this.secondPlacedGateway = page
|
|
143
|
-
.locator('[data-element-id*="Gateway"]')
|
|
144
|
-
.last();
|
|
145
|
-
this.connectToOtherElementButton = page.getByTitle('Connect using sequence/message flow or association');
|
|
146
|
-
this.canvas = page.locator('rect').nth(1);
|
|
147
|
-
this.appendElementButton = page
|
|
148
|
-
.locator('[class="djs-create-pad open djs-append-create-pad"]')
|
|
149
|
-
.first();
|
|
150
|
-
this.firstElement = page.locator('[class="djs-element djs-shape"]').nth(0);
|
|
151
|
-
this.secondElement = page.locator('[class="djs-element djs-shape"]').nth(1);
|
|
152
|
-
this.thirdElement = page.locator('[class="djs-element djs-shape"]').nth(2);
|
|
153
|
-
this.candidateGroupsInput = page.getByRole('textbox', {
|
|
154
|
-
name: 'candidate groups',
|
|
155
|
-
});
|
|
156
|
-
this.dialog = page.getByRole('dialog');
|
|
157
|
-
this.implementationOptions = page.locator('#bio-properties-panel-userTaskImplementation');
|
|
158
|
-
this.implementationSection = page.getByText('implementation');
|
|
159
|
-
this.tenantIdInput = page.getByLabel('Tenant ID');
|
|
160
|
-
this.timerEventOption = page.getByRole('listitem', {
|
|
161
|
-
name: 'Timer intermediate catch event',
|
|
162
|
-
exact: true,
|
|
163
|
-
});
|
|
164
|
-
this.timerEventSettings = page.getByText(/^Timer$/).first();
|
|
165
|
-
this.timerType = page.getByLabel('Type');
|
|
166
|
-
this.timerValue = page.getByLabel('Value');
|
|
167
|
-
}
|
|
168
|
-
async clickGeneralPropertiesPanel() {
|
|
169
|
-
const isExpanded = (await this.generalPanel
|
|
170
|
-
.locator('.bio-properties-panel-group-header.open')
|
|
171
|
-
.count()) > 0;
|
|
172
|
-
if (!isExpanded) {
|
|
173
|
-
await this.generalPanel.click({ timeout: 60000 });
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
async clickIdInput() {
|
|
177
|
-
await this.idInput.click();
|
|
178
|
-
}
|
|
179
|
-
async fillIdInput(id) {
|
|
180
|
-
await this.idInput.fill(id);
|
|
181
|
-
}
|
|
182
|
-
async clickStartEventElement() {
|
|
183
|
-
await this.startEventElement.click({ timeout: 60000, force: true });
|
|
184
|
-
}
|
|
185
|
-
async clickAppendTaskButton() {
|
|
186
|
-
const maxRetries = 3;
|
|
187
|
-
for (let retries = 0; retries < maxRetries; retries++) {
|
|
188
|
-
try {
|
|
189
|
-
if (retries === 0) {
|
|
190
|
-
await this.appendTaskButton.click({ force: true, timeout: 60000 });
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
await this.startEventElement.click({ force: true, timeout: 30000 });
|
|
194
|
-
await this.appendTaskButton.click({ force: true, timeout: 60000 });
|
|
195
|
-
}
|
|
196
|
-
return;
|
|
197
|
-
}
|
|
198
|
-
catch (error) {
|
|
199
|
-
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
200
|
-
await new Promise((resolve) => setTimeout(resolve, 10000));
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|
|
204
|
-
}
|
|
205
|
-
async clickChangeTypeButton() {
|
|
206
|
-
await (0, sleep_1.sleep)(2000);
|
|
207
|
-
await (0, test_1.expect)(this.changeTypeButton).toBeVisible({ timeout: 60000 });
|
|
208
|
-
await this.changeTypeButton.click({ timeout: 60000 });
|
|
209
|
-
await (0, test_1.expect)(this.page.getByText('Change element').first()).toBeVisible({
|
|
210
|
-
timeout: 30000,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
async clickUserTaskOption() {
|
|
214
|
-
const maxRetries = 3;
|
|
215
|
-
for (let retries = 0; retries < maxRetries; retries++) {
|
|
216
|
-
try {
|
|
217
|
-
if (retries === 0) {
|
|
218
|
-
await this.userTaskOption.click({ timeout: 30000, force: true });
|
|
219
|
-
}
|
|
220
|
-
else {
|
|
221
|
-
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
222
|
-
await this.userTaskOption.click({ timeout: 30000, force: true });
|
|
223
|
-
}
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
catch (error) {
|
|
227
|
-
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
228
|
-
await new Promise((resolve) => setTimeout(resolve, 10000));
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|
|
232
|
-
}
|
|
233
|
-
async clickAppendEndEventButton(parentElement, retries = 3) {
|
|
234
|
-
for (let i = 0; i < retries; i++) {
|
|
235
|
-
try {
|
|
236
|
-
await this.appendEndEventButton.click({ timeout: 90000, force: true });
|
|
237
|
-
return; // Click succeeded, exit the loop
|
|
238
|
-
}
|
|
239
|
-
catch (error) {
|
|
240
|
-
console.error(`Attempt ${i + 1} to click deploy button failed: ${error}`);
|
|
241
|
-
// Wait for 10 seconds
|
|
242
|
-
await (0, sleep_1.sleep)(10000);
|
|
243
|
-
if (parentElement == undefined) {
|
|
244
|
-
await this.clickSecondPlacedElement();
|
|
245
|
-
}
|
|
246
|
-
else if (parentElement == 'parallelGateway') {
|
|
247
|
-
await this.clickSecondPlacedGateway();
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
throw new Error(`Failed to click deploy button after ${retries} retries`);
|
|
252
|
-
}
|
|
253
|
-
async clickStartInstanceMainButton() {
|
|
254
|
-
await this.startInstanceMainButton.click({ timeout: 120000 });
|
|
255
|
-
}
|
|
256
|
-
async clickStartInstanceSubButton() {
|
|
257
|
-
await this.startInstanceSubButton.click({ timeout: 120000 });
|
|
258
|
-
}
|
|
259
|
-
async clickViewProcessInstanceLink() {
|
|
260
|
-
await this.viewProcessInstanceLink.click({ timeout: 90000 });
|
|
261
|
-
}
|
|
262
|
-
async clickNameInput() {
|
|
263
|
-
await this.nameInput.click();
|
|
264
|
-
}
|
|
265
|
-
async fillNameInput(name) {
|
|
266
|
-
await this.nameInput.fill(name);
|
|
267
|
-
}
|
|
268
|
-
async clickDiagramBreadcrumb() {
|
|
269
|
-
await this.diagramBreadcrumb.click({ timeout: 60000 });
|
|
270
|
-
}
|
|
271
|
-
async clickEditDiagramNameButton() {
|
|
272
|
-
await this.editDiagramNameButton.click();
|
|
273
|
-
}
|
|
274
|
-
async enterDiagramName(name) {
|
|
275
|
-
await this.diagramNameInput.fill(name, { timeout: 60000 });
|
|
276
|
-
await this.diagramNameInput.press('Enter', { timeout: 60000 });
|
|
277
|
-
}
|
|
278
|
-
async clickVariableInput() {
|
|
279
|
-
await this.variableInput.click();
|
|
280
|
-
}
|
|
281
|
-
async fillVariableInput(variable) {
|
|
282
|
-
await this.variableInput.fill(variable);
|
|
283
|
-
}
|
|
284
|
-
async clickEmbedFormButton() {
|
|
285
|
-
await this.embedFormButton.click({ timeout: 90000 });
|
|
286
|
-
}
|
|
287
|
-
async clickEmbedButton() {
|
|
288
|
-
await this.embedButton.click();
|
|
289
|
-
}
|
|
290
|
-
async clickDeployMainButton() {
|
|
291
|
-
await this.deployMainButton.click({ timeout: 90000 });
|
|
292
|
-
}
|
|
293
|
-
async clickDeploySubButton() {
|
|
294
|
-
await this.deploySubButton.click({ timeout: 90000 });
|
|
295
|
-
}
|
|
296
|
-
async clickCancelButton() {
|
|
297
|
-
await this.cancelButton.click();
|
|
298
|
-
}
|
|
299
|
-
async clickRestConnectorOption() {
|
|
300
|
-
const maxRetries = 4;
|
|
301
|
-
for (let retries = 0; retries < maxRetries; retries++) {
|
|
302
|
-
try {
|
|
303
|
-
if (retries === 0) {
|
|
304
|
-
// First attempt
|
|
305
|
-
await this.restConnectorOption.click({ timeout: 60000 });
|
|
306
|
-
}
|
|
307
|
-
else if (retries === 1 || retries === 2) {
|
|
308
|
-
// Second or third attempt
|
|
309
|
-
await this.page.reload();
|
|
310
|
-
await this.secondElement.click({ timeout: 60000 });
|
|
311
|
-
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
312
|
-
await this.restConnectorOption.click({ timeout: 90000 });
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
// Forth and subsequent attempts
|
|
316
|
-
await this.clickMarketPlaceButton();
|
|
317
|
-
const connectorMarketplacePage = new ConnectorMarketplacePage_1.ConnectorMarketplacePage(this.page);
|
|
318
|
-
await connectorMarketplacePage.clickSearchForConnectorTextbox();
|
|
319
|
-
await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
|
|
320
|
-
await (0, sleep_1.sleep)(10000);
|
|
321
|
-
await connectorMarketplacePage.downloadConnectorToProject();
|
|
322
|
-
await this.clickChangeTypeButton();
|
|
323
|
-
await this.restConnectorOption.click({ timeout: 120000 });
|
|
324
|
-
}
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
|
-
catch (error) {
|
|
328
|
-
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
329
|
-
await new Promise((resolve) => setTimeout(resolve, 10000));
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|
|
333
|
-
}
|
|
334
|
-
async clickMarketPlaceButton() {
|
|
335
|
-
const maxRetries = 3;
|
|
336
|
-
for (let retries = 0; retries < maxRetries; retries++) {
|
|
337
|
-
try {
|
|
338
|
-
if (retries === 0) {
|
|
339
|
-
await (0, test_1.expect)(this.marketPlaceButton).toBeVisible({
|
|
340
|
-
timeout: 120000,
|
|
341
|
-
});
|
|
342
|
-
await this.marketPlaceButton.click({ timeout: 30000 });
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
346
|
-
await (0, test_1.expect)(this.marketPlaceButton).toBeVisible({
|
|
347
|
-
timeout: 120000,
|
|
348
|
-
});
|
|
349
|
-
await this.marketPlaceButton.click({ timeout: 30000 });
|
|
350
|
-
}
|
|
351
|
-
return;
|
|
352
|
-
}
|
|
353
|
-
catch (error) {
|
|
354
|
-
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
355
|
-
await new Promise((resolve) => setTimeout(resolve, 10000));
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|
|
359
|
-
}
|
|
360
|
-
async deployProcessInstance() {
|
|
361
|
-
await this.clickDeployMainButton();
|
|
362
|
-
await this.completeDeploymentEndpointConfiguration();
|
|
363
|
-
await this.clickDeploySubButton();
|
|
364
|
-
await (0, test_1.expect)(this.page.getByText('Diagram Deployed!')).toBeVisible({
|
|
365
|
-
timeout: 180000,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
async modelJobWorkerDiagram(processName, formName = '') {
|
|
369
|
-
await (0, test_1.expect)(this.generalPanel).toBeVisible({
|
|
370
|
-
timeout: 120000,
|
|
371
|
-
});
|
|
372
|
-
await this.enterDiagramName(processName);
|
|
373
|
-
await (0, sleep_1.sleep)(15000);
|
|
374
|
-
await this.clickStartEventElement();
|
|
375
|
-
await this.clickGeneralPropertiesPanel();
|
|
376
|
-
await this.clickIdInput();
|
|
377
|
-
await this.fillIdInput(processName);
|
|
378
|
-
await this.clickStartEventElement();
|
|
379
|
-
await this.clickAppendTaskButton();
|
|
380
|
-
await this.clickChangeTypeButton();
|
|
381
|
-
await this.clickUserTaskOption();
|
|
382
|
-
if (formName.length > 0) {
|
|
383
|
-
await this.clickEmbedFormButton();
|
|
384
|
-
await this.clickForm(formName);
|
|
385
|
-
await this.clickEmbedButton();
|
|
386
|
-
}
|
|
387
|
-
await this.clickAppendEndEventButton();
|
|
388
|
-
await this.clickCanvas();
|
|
389
|
-
await (0, sleep_1.sleep)(20000);
|
|
390
|
-
await this.assertThreeElementsVisible();
|
|
391
|
-
}
|
|
392
|
-
async chooseImplementationOption(implementationType) {
|
|
393
|
-
const isExpanded = (await this.implementationSection
|
|
394
|
-
.locator('.bio-properties-panel-group-header open')
|
|
395
|
-
.count()) > 0;
|
|
396
|
-
if (!isExpanded) {
|
|
397
|
-
await this.implementationSection.click();
|
|
398
|
-
}
|
|
399
|
-
await this.implementationOptions.selectOption(implementationType);
|
|
400
|
-
}
|
|
401
|
-
async runProcessInstance(variables = '') {
|
|
402
|
-
await this.clickStartInstanceMainButton();
|
|
403
|
-
await this.completeDeploymentEndpointConfiguration();
|
|
404
|
-
await (0, test_1.expect)(this.dialog).toBeVisible({
|
|
405
|
-
timeout: 30000,
|
|
406
|
-
});
|
|
407
|
-
if (variables.length > 0) {
|
|
408
|
-
await (0, test_1.expect)(this.variableInput).toBeVisible({
|
|
409
|
-
timeout: 60000,
|
|
410
|
-
});
|
|
411
|
-
await this.clickVariableInput();
|
|
412
|
-
await this.fillVariableInput(variables);
|
|
413
|
-
}
|
|
414
|
-
await this.clickStartInstanceSubButton();
|
|
415
|
-
await this.instanceStartedAssertion();
|
|
416
|
-
}
|
|
417
|
-
async clickClusterEndpointTextbox() {
|
|
418
|
-
await this.clusterEndpointTextbox.click();
|
|
419
|
-
}
|
|
420
|
-
async fillClusterEndpointTextbox(clusterEndpoint) {
|
|
421
|
-
await this.clusterEndpointTextbox.fill(clusterEndpoint);
|
|
422
|
-
}
|
|
423
|
-
async completeDeploymentEndpointConfiguration() {
|
|
424
|
-
await this.oAuthCheckbox.click({ timeout: 30000 });
|
|
425
|
-
await this.clusterEndpointTextbox.click({ timeout: 30000 });
|
|
426
|
-
await this.clusterEndpointTextbox.fill(process.env.CLUSTER_ENDPOINT, {
|
|
427
|
-
timeout: 30000,
|
|
428
|
-
});
|
|
429
|
-
await (0, test_1.expect)(this.clientIdTextbox).toBeVisible({ timeout: 30000 });
|
|
430
|
-
await this.clientIdTextbox.click({ timeout: 30000 });
|
|
431
|
-
await this.clientIdTextbox.fill('test', { timeout: 30000 });
|
|
432
|
-
await this.clientSecretTextbox.click({ timeout: 30000 });
|
|
433
|
-
await this.clientSecretTextbox.fill(process.env.DISTRO_QA_E2E_TESTS_KEYCLOAK_CLIENTS_SECRET);
|
|
434
|
-
await this.oauthUrlTextbox.click({ timeout: 30000 });
|
|
435
|
-
await this.oauthUrlTextbox.fill(process.env.OAUTH_URL);
|
|
436
|
-
await this.audienceTextbox.click({ timeout: 30000 });
|
|
437
|
-
await this.audienceTextbox.fill('zeebe-api');
|
|
438
|
-
await this.rememberCredentialsCheckbox.click({ timeout: 30000 });
|
|
439
|
-
}
|
|
440
|
-
async clickWebhookStartEventConnectorOption() {
|
|
441
|
-
const maxRetries = 3;
|
|
442
|
-
for (let retries = 0; retries < maxRetries; retries++) {
|
|
443
|
-
try {
|
|
444
|
-
if (retries === 0) {
|
|
445
|
-
await this.webhookStartEventConnectorOption.click({ timeout: 30000 });
|
|
446
|
-
}
|
|
447
|
-
else {
|
|
448
|
-
await this.changeTypeButton.click({ force: true, timeout: 30000 });
|
|
449
|
-
await this.webhookStartEventConnectorOption.click({ timeout: 90000 });
|
|
450
|
-
}
|
|
451
|
-
return;
|
|
452
|
-
}
|
|
453
|
-
catch (error) {
|
|
454
|
-
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
455
|
-
await new Promise((resolve) => setTimeout(resolve, 10000));
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|
|
459
|
-
}
|
|
460
|
-
async clickWebhookIdInput() {
|
|
461
|
-
await this.webhookIdInput.click();
|
|
462
|
-
}
|
|
463
|
-
async clearWebhookIdInput() {
|
|
464
|
-
await this.webhookIdInput.clear();
|
|
465
|
-
}
|
|
466
|
-
async fillWebhookIdInput(webhookId) {
|
|
467
|
-
await this.webhookIdInput.fill(webhookId);
|
|
468
|
-
}
|
|
469
|
-
async hoverOnStartEvent() {
|
|
470
|
-
await this.startEventElement.hover();
|
|
471
|
-
}
|
|
472
|
-
async instanceStartedAssertion() {
|
|
473
|
-
try {
|
|
474
|
-
await (0, test_1.expect)(this.page.getByText('Instance started!')).toBeVisible({
|
|
475
|
-
timeout: 180000,
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
catch {
|
|
479
|
-
await this.clickStartInstanceMainButton();
|
|
480
|
-
await this.completeDeploymentEndpointConfiguration();
|
|
481
|
-
await this.clickStartInstanceSubButton();
|
|
482
|
-
await (0, test_1.expect)(this.page.getByText('Instance started!')).toBeVisible({
|
|
483
|
-
timeout: 180000,
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
async clickForm(name) {
|
|
488
|
-
await this.page
|
|
489
|
-
.locator(`[data-test="item-${name}"]`)
|
|
490
|
-
.getByText(name)
|
|
491
|
-
.click({ timeout: 90000 });
|
|
492
|
-
}
|
|
493
|
-
async assertThreeElementsVisible() {
|
|
494
|
-
await (0, test_1.expect)(this.firstElement).toBeVisible({ timeout: 30000 });
|
|
495
|
-
await (0, test_1.expect)(this.secondElement).toBeVisible({ timeout: 30000 });
|
|
496
|
-
await (0, test_1.expect)(this.thirdElement).toBeVisible({ timeout: 30000 });
|
|
497
|
-
}
|
|
498
|
-
async clickCanvas() {
|
|
499
|
-
await (0, sleep_1.sleep)(1000);
|
|
500
|
-
await this.modelerCanvas.click({ timeout: 60000 });
|
|
501
|
-
}
|
|
502
|
-
async clickIntermediateBoundaryEvent() {
|
|
503
|
-
await this.intermediateBoundaryEvent.click({ timeout: 60000 });
|
|
504
|
-
}
|
|
505
|
-
async clickIntermediateWebhookConnectorOption() {
|
|
506
|
-
try {
|
|
507
|
-
await this.intermediateWebhookConnectorOption.click({ timeout: 60000 });
|
|
508
|
-
}
|
|
509
|
-
catch (error) {
|
|
510
|
-
await this.page.reload();
|
|
511
|
-
await this.secondElement.click({ timeout: 60000 });
|
|
512
|
-
await this.changeTypeButton.click({ force: true, timeout: 60000 });
|
|
513
|
-
await this.intermediateWebhookConnectorOption.click({ timeout: 90000 });
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
async clickCorrelationKeyProcessInput() {
|
|
517
|
-
await this.correlationKeyProcessInput.click({ timeout: 60000 });
|
|
518
|
-
}
|
|
519
|
-
async fillCorrelationKeyProcessInput(correlationKeyProcess) {
|
|
520
|
-
await this.correlationKeyProcessInput.fill(correlationKeyProcess);
|
|
521
|
-
}
|
|
522
|
-
async clickCorrelationKeyPayloadInput() {
|
|
523
|
-
await this.correlationKeyPayloadInput.click({ timeout: 60000 });
|
|
524
|
-
}
|
|
525
|
-
async fillCorrelationKeyPayloadInput(correlationKeyPayload) {
|
|
526
|
-
await this.correlationKeyPayloadInput.fill(correlationKeyPayload);
|
|
527
|
-
}
|
|
528
|
-
async clickDesignTab() {
|
|
529
|
-
await this.designTab.click({ timeout: 60000 });
|
|
530
|
-
}
|
|
531
|
-
async clickImplementTab() {
|
|
532
|
-
await this.implementTab.click({ timeout: 60000 });
|
|
533
|
-
}
|
|
534
|
-
async expandAssignmentSection() {
|
|
535
|
-
const isExpanded = (await this.assignmentSection
|
|
536
|
-
.locator('[data-group-id="group-assignmentDefinition"] .bio-properties-panel-group-header.open')
|
|
537
|
-
.count()) > 0;
|
|
538
|
-
if (!isExpanded) {
|
|
539
|
-
await this.assignmentSection.click({ timeout: 60000 });
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
async selectUserTask(userTask) {
|
|
543
|
-
await this.page.locator(`[data-element-id="${userTask}"]`).click();
|
|
544
|
-
}
|
|
545
|
-
async clickCandidateUsersInput() {
|
|
546
|
-
await this.candidateUsersInput.click({ timeout: 60000 });
|
|
547
|
-
}
|
|
548
|
-
async fillCandidateUsersInput(candidateUser) {
|
|
549
|
-
await this.candidateUsersInput.fill(candidateUser, { timeout: 60000 });
|
|
550
|
-
}
|
|
551
|
-
async clickAssigneeInput() {
|
|
552
|
-
await this.assigneeInput.click({ timeout: 60000 });
|
|
553
|
-
}
|
|
554
|
-
async fillAssigneeInput(name) {
|
|
555
|
-
await this.assigneeInput.fill(name, { timeout: 60000 });
|
|
556
|
-
}
|
|
557
|
-
async addParallelUserTasks(numberOfTasks, taskName) {
|
|
558
|
-
await this.appendGatewayButton.click();
|
|
559
|
-
await this.clickChangeTypeButton();
|
|
560
|
-
await this.clickParallelGatewayOption();
|
|
561
|
-
await this.clickAppendTaskButton();
|
|
562
|
-
await this.clickChangeTypeButton();
|
|
563
|
-
await this.clickUserTaskOption();
|
|
564
|
-
await this.clickGeneralPropertiesPanel();
|
|
565
|
-
await this.clickNameInput();
|
|
566
|
-
await this.fillNameInput(taskName + '1');
|
|
567
|
-
await this.clickIdInput();
|
|
568
|
-
await this.fillIdInput(taskName + '1');
|
|
569
|
-
await this.clickAppendGatewayButton();
|
|
570
|
-
await this.clickChangeTypeButton();
|
|
571
|
-
await this.clickParallelGatewayOption();
|
|
572
|
-
for (let i = 2; i <= numberOfTasks; i++) {
|
|
573
|
-
await this.clickFirstPlacedGateway();
|
|
574
|
-
await this.clickAppendTaskButton();
|
|
575
|
-
await this.clickChangeTypeButton();
|
|
576
|
-
await this.clickUserTaskOption();
|
|
577
|
-
await this.clickNameInput();
|
|
578
|
-
await this.fillNameInput(taskName + i);
|
|
579
|
-
await this.clickIdInput();
|
|
580
|
-
await this.fillIdInput(taskName + i);
|
|
581
|
-
await this.clickConnectToOtherElementButton();
|
|
582
|
-
await this.clickSecondPlacedGateway();
|
|
583
|
-
await this.clickCanvas();
|
|
584
|
-
}
|
|
585
|
-
await this.clickSecondPlacedGateway();
|
|
586
|
-
}
|
|
587
|
-
async clickAppendGatewayButton() {
|
|
588
|
-
await this.appendGatewayButton.click({ timeout: 90000 });
|
|
589
|
-
}
|
|
590
|
-
async clickFirstPlacedElement() {
|
|
591
|
-
await this.firstElement.click({ timeout: 90000 });
|
|
592
|
-
}
|
|
593
|
-
async clickSecondPlacedElement() {
|
|
594
|
-
await this.secondElement.click({ timeout: 60000 });
|
|
595
|
-
}
|
|
596
|
-
async clickFirstPlacedGateway() {
|
|
597
|
-
await this.firstPlacedGateway.click({ timeout: 60000 });
|
|
598
|
-
}
|
|
599
|
-
async clickSecondPlacedGateway() {
|
|
600
|
-
await this.secondPlacedGateway.click({ timeout: 60000 });
|
|
601
|
-
}
|
|
602
|
-
async clickParallelGatewayOption() {
|
|
603
|
-
await this.parallelGatewayOption.click({ timeout: 90000 });
|
|
604
|
-
}
|
|
605
|
-
async clickConnectToOtherElementButton() {
|
|
606
|
-
await this.connectToOtherElementButton.click({ timeout: 60000 });
|
|
607
|
-
}
|
|
608
|
-
async clickPriorityInput() {
|
|
609
|
-
try {
|
|
610
|
-
await this.priorityInput.click();
|
|
611
|
-
}
|
|
612
|
-
catch (error) {
|
|
613
|
-
await this.assignmentSection.click({ timeout: 60000 });
|
|
614
|
-
await this.priorityInput.click({ timeout: 60000 });
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
async fillPriorityInput(priority) {
|
|
618
|
-
await this.priorityInput.fill(priority, { timeout: 60000 });
|
|
619
|
-
}
|
|
620
|
-
async clickCandidateGroupsInput() {
|
|
621
|
-
await this.candidateGroupsInput.click({ timeout: 60000 });
|
|
622
|
-
}
|
|
623
|
-
async fillCandidateGroupsInput(candidateGroup) {
|
|
624
|
-
await this.candidateGroupsInput.fill(candidateGroup, { timeout: 60000 });
|
|
625
|
-
}
|
|
626
|
-
async clickTenantIdInput() {
|
|
627
|
-
await this.tenantIdInput.click({ timeout: 60000 });
|
|
628
|
-
}
|
|
629
|
-
async fillTenantIdInput(tenant) {
|
|
630
|
-
await this.tenantIdInput.fill(tenant, { timeout: 60000 });
|
|
631
|
-
}
|
|
632
|
-
async clickTimerEventOption() {
|
|
633
|
-
await this.timerEventOption.click();
|
|
634
|
-
}
|
|
635
|
-
async clickTimerEventSettings() {
|
|
636
|
-
await this.timerEventSettings.click();
|
|
637
|
-
}
|
|
638
|
-
async selectTimerType(type) {
|
|
639
|
-
await this.timerType.selectOption(type);
|
|
640
|
-
}
|
|
641
|
-
async clickTimerValue() {
|
|
642
|
-
await this.timerValue.click();
|
|
643
|
-
}
|
|
644
|
-
async fillTimerValue(value) {
|
|
645
|
-
await this.timerValue.fill(value);
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
exports.ModelerCreatePage = ModelerCreatePage;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Page, Locator } from '@playwright/test';
|
|
2
|
-
declare class ModelerHomePage {
|
|
3
|
-
private page;
|
|
4
|
-
private defaultFolderName;
|
|
5
|
-
readonly modelerPageBanner: Locator;
|
|
6
|
-
readonly createNewProjectButton: Locator;
|
|
7
|
-
readonly projectNameInput: Locator;
|
|
8
|
-
readonly chooseBpmnTemplateButton: Locator;
|
|
9
|
-
readonly diagramTypeDropdown: Locator;
|
|
10
|
-
readonly bpmnTemplateOption: Locator;
|
|
11
|
-
readonly formTemplateOption: Locator;
|
|
12
|
-
readonly projectBreadcrumb: Locator;
|
|
13
|
-
readonly openOrganizationsButton: Locator;
|
|
14
|
-
readonly manageButton: Locator;
|
|
15
|
-
readonly crossComponentProjectFolder: Locator;
|
|
16
|
-
readonly homeBreadcrumb: Locator;
|
|
17
|
-
readonly formNameInput: Locator;
|
|
18
|
-
readonly rows: Locator;
|
|
19
|
-
constructor(page: Page);
|
|
20
|
-
clickCreateNewProjectButton(): Promise<void>;
|
|
21
|
-
enterNewProjectName(name: string): Promise<void>;
|
|
22
|
-
createCrossComponentProjectFolder(): Promise<void>;
|
|
23
|
-
clickCrossComponentProjectFolder(): Promise<void>;
|
|
24
|
-
clickProcessDiagram(name: string): Promise<void>;
|
|
25
|
-
clickHomeBreadcrumb(): Promise<void>;
|
|
26
|
-
clickChooseBpmnTemplateButton(): Promise<void>;
|
|
27
|
-
clickDiagramTypeDropdown(): Promise<void>;
|
|
28
|
-
clickBpmnTemplateOption(): Promise<void>;
|
|
29
|
-
clickFormOption(): Promise<void>;
|
|
30
|
-
enterFormName(name: string): Promise<void>;
|
|
31
|
-
clickProjectBreadcrumb(): Promise<void>;
|
|
32
|
-
clickOpenOrganizationsButton(): Promise<void>;
|
|
33
|
-
clickManageButton(): Promise<void>;
|
|
34
|
-
}
|
|
35
|
-
export { ModelerHomePage };
|