@camunda/e2e-test-suite 0.0.1329 → 0.0.1331
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/.github/c8_versions.json +1 -0
- package/README.md +1 -0
- package/dist/fixtures/8.11.d.ts +83 -0
- package/dist/fixtures/8.11.js +203 -0
- package/dist/pages/8.11/AppsPage.d.ts +60 -0
- package/dist/pages/8.11/AppsPage.js +1060 -0
- package/dist/pages/8.11/AuditLogPage.d.ts +14 -0
- package/dist/pages/8.11/AuditLogPage.js +69 -0
- package/dist/pages/8.11/Authorization.d.ts +44 -0
- package/dist/pages/8.11/Authorization.js +409 -0
- package/dist/pages/8.11/ClientCredentialsDetailsPage.d.ts +12 -0
- package/dist/pages/8.11/ClientCredentialsDetailsPage.js +36 -0
- package/dist/pages/8.11/ClusterDetailsPage.d.ts +107 -0
- package/dist/pages/8.11/ClusterDetailsPage.js +892 -0
- package/dist/pages/8.11/ClusterPage.d.ts +96 -0
- package/dist/pages/8.11/ClusterPage.js +657 -0
- package/dist/pages/8.11/ClusterSecretsPage.d.ts +48 -0
- package/dist/pages/8.11/ClusterSecretsPage.js +406 -0
- package/dist/pages/8.11/ConnectorMarketplacePage.d.ts +29 -0
- package/dist/pages/8.11/ConnectorMarketplacePage.js +156 -0
- package/dist/pages/8.11/ConnectorSettingsPage.d.ts +39 -0
- package/dist/pages/8.11/ConnectorSettingsPage.js +150 -0
- package/dist/pages/8.11/ConnectorTemplatePage.d.ts +11 -0
- package/dist/pages/8.11/ConnectorTemplatePage.js +34 -0
- package/dist/pages/8.11/ConsoleOrganizationPage.d.ts +77 -0
- package/dist/pages/8.11/ConsoleOrganizationPage.js +457 -0
- package/dist/pages/8.11/DataFiltersPage.d.ts +30 -0
- package/dist/pages/8.11/DataFiltersPage.js +135 -0
- package/dist/pages/8.11/FormJsPage.d.ts +38 -0
- package/dist/pages/8.11/FormJsPage.js +283 -0
- package/dist/pages/8.11/HomePage.d.ts +29 -0
- package/dist/pages/8.11/HomePage.js +176 -0
- package/dist/pages/8.11/IdpCreatePage.d.ts +118 -0
- package/dist/pages/8.11/IdpCreatePage.js +514 -0
- package/dist/pages/8.11/LoginPage.d.ts +45 -0
- package/dist/pages/8.11/LoginPage.js +214 -0
- package/dist/pages/8.11/ModelerCreatePage.d.ts +256 -0
- package/dist/pages/8.11/ModelerCreatePage.js +2272 -0
- package/dist/pages/8.11/ModelerHomePage.d.ts +100 -0
- package/dist/pages/8.11/ModelerHomePage.js +1168 -0
- package/dist/pages/8.11/ModelerUserInvitePage.d.ts +29 -0
- package/dist/pages/8.11/ModelerUserInvitePage.js +136 -0
- package/dist/pages/8.11/OCIdentityAuthorizationsPage.d.ts +11 -0
- package/dist/pages/8.11/OCIdentityAuthorizationsPage.js +25 -0
- package/dist/pages/8.11/OCIdentityClusterVariablesPage.d.ts +21 -0
- package/dist/pages/8.11/OCIdentityClusterVariablesPage.js +128 -0
- package/dist/pages/8.11/OCIdentityGroupsPage.d.ts +38 -0
- package/dist/pages/8.11/OCIdentityGroupsPage.js +176 -0
- package/dist/pages/8.11/OCIdentityHomePage.d.ts +21 -0
- package/dist/pages/8.11/OCIdentityHomePage.js +111 -0
- package/dist/pages/8.11/OCIdentityMappingRulesPage.d.ts +23 -0
- package/dist/pages/8.11/OCIdentityMappingRulesPage.js +124 -0
- package/dist/pages/8.11/OCIdentityRolesPage.d.ts +43 -0
- package/dist/pages/8.11/OCIdentityRolesPage.js +236 -0
- package/dist/pages/8.11/OperateHomePage.d.ts +28 -0
- package/dist/pages/8.11/OperateHomePage.js +150 -0
- package/dist/pages/8.11/OperateProcessInstancePage.d.ts +43 -0
- package/dist/pages/8.11/OperateProcessInstancePage.js +893 -0
- package/dist/pages/8.11/OperateProcessesPage.d.ts +28 -0
- package/dist/pages/8.11/OperateProcessesPage.js +153 -0
- package/dist/pages/8.11/OptimizeCollectionsPage.d.ts +30 -0
- package/dist/pages/8.11/OptimizeCollectionsPage.js +175 -0
- package/dist/pages/8.11/OptimizeDashboardPage.d.ts +11 -0
- package/dist/pages/8.11/OptimizeDashboardPage.js +71 -0
- package/dist/pages/8.11/OptimizeHomePage.d.ts +17 -0
- package/dist/pages/8.11/OptimizeHomePage.js +171 -0
- package/dist/pages/8.11/OptimizeReportPage.d.ts +49 -0
- package/dist/pages/8.11/OptimizeReportPage.js +184 -0
- package/dist/pages/8.11/OptimizeSharePage.d.ts +16 -0
- package/dist/pages/8.11/OptimizeSharePage.js +100 -0
- package/dist/pages/8.11/PlayPage.d.ts +17 -0
- package/dist/pages/8.11/PlayPage.js +157 -0
- package/dist/pages/8.11/ProcessApplicationPage.d.ts +32 -0
- package/dist/pages/8.11/ProcessApplicationPage.js +496 -0
- package/dist/pages/8.11/SettingsPage.d.ts +10 -0
- package/dist/pages/8.11/SettingsPage.js +53 -0
- package/dist/pages/8.11/SignUpPage.d.ts +42 -0
- package/dist/pages/8.11/SignUpPage.js +134 -0
- package/dist/pages/8.11/TaskDetailsPage.d.ts +77 -0
- package/dist/pages/8.11/TaskDetailsPage.js +324 -0
- package/dist/pages/8.11/TaskPanelPage.d.ts +26 -0
- package/dist/pages/8.11/TaskPanelPage.js +245 -0
- package/dist/pages/8.11/TaskProcessesPage.d.ts +18 -0
- package/dist/pages/8.11/TaskProcessesPage.js +134 -0
- package/dist/pages/8.11/UtilitiesPage.d.ts +56 -0
- package/dist/pages/8.11/UtilitiesPage.js +1024 -0
- package/dist/pages/8.11/WorkspaceMembersPage.d.ts +21 -0
- package/dist/pages/8.11/WorkspaceMembersPage.js +268 -0
- package/dist/pages/SM-8.10/FormJsPage.js +8 -26
- package/dist/pages/SM-8.10/ModelerCreatePage.js +4 -3
- package/dist/tests/8.11/access-user-role-management.spec.d.ts +1 -0
- package/dist/tests/8.11/access-user-role-management.spec.js +487 -0
- package/dist/tests/8.11/agentic-ai-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/agentic-ai-user-flows.spec.js +209 -0
- package/dist/tests/8.11/aws-cluster-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/aws-cluster-user-flows.spec.js +188 -0
- package/dist/tests/8.11/aws-connectors-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/aws-connectors-user-flows.spec.js +167 -0
- package/dist/tests/8.11/cluster-variables.spec.d.ts +1 -0
- package/dist/tests/8.11/cluster-variables.spec.js +202 -0
- package/dist/tests/8.11/connectors-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/connectors-user-flows.spec.js +537 -0
- package/dist/tests/8.11/console-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/console-user-flows.spec.js +199 -0
- package/dist/tests/8.11/hto-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/hto-user-flows.spec.js +358 -0
- package/dist/tests/8.11/idp-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/idp-user-flows.spec.js +316 -0
- package/dist/tests/8.11/login-negative-tests.spec.d.ts +1 -0
- package/dist/tests/8.11/login-negative-tests.spec.js +29 -0
- package/dist/tests/8.11/login.spec.d.ts +1 -0
- package/dist/tests/8.11/login.spec.js +29 -0
- package/dist/tests/8.11/navigation.spec.d.ts +1 -0
- package/dist/tests/8.11/navigation.spec.js +59 -0
- package/dist/tests/8.11/operate-access-flow.spec.d.ts +1 -0
- package/dist/tests/8.11/operate-access-flow.spec.js +136 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-api.spec.js +96 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-agentic-control-panel-ui.spec.js +69 -0
- package/dist/tests/8.11/optimize-api-tests.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-api-tests.spec.js +1194 -0
- package/dist/tests/8.11/optimize-collections-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-collections-api.spec.js +184 -0
- package/dist/tests/8.11/optimize-collections-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-collections-ui.spec.js +46 -0
- package/dist/tests/8.11/optimize-data-filters-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-data-filters-api.spec.js +195 -0
- package/dist/tests/8.11/optimize-data-filters-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-data-filters-ui.spec.js +306 -0
- package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-exporter-filters-importer-e2e.spec.js +316 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-api.spec.js +337 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.d.ts +1 -0
- package/dist/tests/8.11/optimize-sharing-alerts-export-ui.spec.js +198 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-audit-log.spec.js +146 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-call-tools.spec.js +208 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-e2e-flow.spec.js +151 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/api/mcp-processes-list-tools.spec.js +242 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-cluster-tools.spec.js +75 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-incident-tools.spec.js +123 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-user-task-tools.spec.js +151 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.d.ts +1 -0
- package/dist/tests/8.11/orchestration-cluster-mcp-server/mcp-variable-tools.spec.js +123 -0
- package/dist/tests/8.11/play.spec.d.ts +1 -0
- package/dist/tests/8.11/play.spec.js +93 -0
- package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/rba-enabled-v2-user-flows.spec.js +495 -0
- package/dist/tests/8.11/saas-migration-path-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/saas-migration-path-user-flows.spec.js +133 -0
- package/dist/tests/8.11/smoke-tests.spec.d.ts +1 -0
- package/dist/tests/8.11/smoke-tests.spec.js +339 -0
- package/dist/tests/8.11/test-setup.spec.d.ts +1 -0
- package/dist/tests/8.11/test-setup.spec.js +256 -0
- package/dist/tests/8.11/web-modeler-user-flows.spec.d.ts +1 -0
- package/dist/tests/8.11/web-modeler-user-flows.spec.js +523 -0
- package/dist/utils/clusterVersions.d.ts +2 -1
- package/dist/utils/clusterVersions.js +1 -0
- package/dist/utils/consoleApiHelpers.js +1 -0
- package/package.json +1 -1
- package/playwright.config.ts +10 -0
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConsoleOrganizationPage = void 0;
|
|
4
|
+
const test_1 = require("@playwright/test");
|
|
5
|
+
const sleep_1 = require("../../utils/sleep");
|
|
6
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
7
|
+
class ConsoleOrganizationPage {
|
|
8
|
+
page;
|
|
9
|
+
usersTab;
|
|
10
|
+
optionsButton;
|
|
11
|
+
editUserMenuItem;
|
|
12
|
+
modelerCheckbox;
|
|
13
|
+
adminCheckbox;
|
|
14
|
+
analystCheckbox;
|
|
15
|
+
confirmButton;
|
|
16
|
+
settingsTab;
|
|
17
|
+
optInButton;
|
|
18
|
+
optInCheckbox;
|
|
19
|
+
newContextPadButton;
|
|
20
|
+
newContextPadButtonText;
|
|
21
|
+
mainUser;
|
|
22
|
+
dialog;
|
|
23
|
+
idComboBox;
|
|
24
|
+
readPermissionCheckbox;
|
|
25
|
+
startProcessIPermissionCheckbox;
|
|
26
|
+
optInAICheckbox;
|
|
27
|
+
rows;
|
|
28
|
+
groupsTab;
|
|
29
|
+
createGroupButton;
|
|
30
|
+
createGroupSubButton;
|
|
31
|
+
groupNameInput;
|
|
32
|
+
noGroupsHeading;
|
|
33
|
+
createFirstGroupButton;
|
|
34
|
+
createGroupDialoge;
|
|
35
|
+
assignMembersButton;
|
|
36
|
+
assignMembersSubButton;
|
|
37
|
+
assignMembersSearchbox;
|
|
38
|
+
assignMembersSearchResult;
|
|
39
|
+
organizationManagementLink;
|
|
40
|
+
deleteSubButton;
|
|
41
|
+
deleteButton;
|
|
42
|
+
filterTableSearchbox;
|
|
43
|
+
constructor(page) {
|
|
44
|
+
this.page = page;
|
|
45
|
+
this.usersTab = page.getByRole('tab', { name: 'Users' });
|
|
46
|
+
// Hub's org-management Users table renamed the per-row kebab from Carbon's
|
|
47
|
+
// "Options" to "Row actions". Scope the fallback to the visible tab panel
|
|
48
|
+
// so another tab's rows cannot match.
|
|
49
|
+
this.optionsButton = page
|
|
50
|
+
.getByRole('button', { name: 'Options' })
|
|
51
|
+
.or(page.getByRole('tabpanel').getByRole('button', { name: 'Row actions' }))
|
|
52
|
+
.first();
|
|
53
|
+
this.editUserMenuItem = page.getByRole('menuitem', { name: /^Edit user$/i });
|
|
54
|
+
// The redesigned "Edit user" dialog renders the role toggles as plain
|
|
55
|
+
// checkboxes with no role="group" wrapper, so scope to the open dialog. Hub
|
|
56
|
+
// also renamed the roles (phased rollout): "Modeler" became "Member" and
|
|
57
|
+
// "Admin" became "Organization Admin"; "Analyst" keeps its name but now
|
|
58
|
+
// already includes Member permissions. Match either name.
|
|
59
|
+
const openDialog = page.getByRole('dialog');
|
|
60
|
+
this.modelerCheckbox = openDialog.getByRole('checkbox', {
|
|
61
|
+
name: /^(Member|Modeler)$/,
|
|
62
|
+
});
|
|
63
|
+
this.adminCheckbox = openDialog.getByRole('checkbox', {
|
|
64
|
+
name: /^(Organization Admin|Admin)$/,
|
|
65
|
+
});
|
|
66
|
+
this.analystCheckbox = openDialog.getByRole('checkbox', {
|
|
67
|
+
name: 'Analyst',
|
|
68
|
+
exact: true,
|
|
69
|
+
});
|
|
70
|
+
this.confirmButton = page.getByRole('button', { name: 'Confirm' });
|
|
71
|
+
this.settingsTab = page.getByRole('tab', { name: 'Settings' });
|
|
72
|
+
this.optInButton = page.getByRole('button', { name: 'Opt-in', exact: true });
|
|
73
|
+
this.optInCheckbox = page.getByLabel('I understand and agree to');
|
|
74
|
+
this.newContextPadButton = page.getByRole('switch').last();
|
|
75
|
+
this.newContextPadButtonText = page
|
|
76
|
+
.locator('[class= "cds--toggle__text"]')
|
|
77
|
+
.last();
|
|
78
|
+
this.mainUser = page
|
|
79
|
+
.getByRole('row')
|
|
80
|
+
.filter({ hasText: process.env.C8_USERNAME });
|
|
81
|
+
this.dialog = page.getByRole('dialog');
|
|
82
|
+
this.idComboBox = page.getByRole('combobox', { name: 'ID' });
|
|
83
|
+
this.readPermissionCheckbox = page.getByRole('checkbox', {
|
|
84
|
+
name: 'Read definition',
|
|
85
|
+
});
|
|
86
|
+
this.startProcessIPermissionCheckbox = page.getByRole('checkbox', {
|
|
87
|
+
name: 'Start process instance',
|
|
88
|
+
});
|
|
89
|
+
this.optInAICheckbox = page.getByLabel('I understand and agree to Terms for AI Usage');
|
|
90
|
+
this.rows = this.page.getByRole('row');
|
|
91
|
+
this.groupsTab = page.getByRole('tab', { name: 'Groups' });
|
|
92
|
+
this.createGroupButton = page.getByRole('button', {
|
|
93
|
+
name: 'create group',
|
|
94
|
+
});
|
|
95
|
+
this.createGroupSubButton = page
|
|
96
|
+
.getByRole('button', {
|
|
97
|
+
name: 'create group',
|
|
98
|
+
})
|
|
99
|
+
.last();
|
|
100
|
+
this.groupNameInput = page.getByRole('textbox', { name: 'name' });
|
|
101
|
+
this.noGroupsHeading = page.getByRole('heading', {
|
|
102
|
+
name: 'you don’t have any groups yet',
|
|
103
|
+
});
|
|
104
|
+
this.createFirstGroupButton = page.getByRole('button', {
|
|
105
|
+
name: 'create a group',
|
|
106
|
+
});
|
|
107
|
+
this.createGroupDialoge = page.getByRole('dialog', {
|
|
108
|
+
name: 'create group',
|
|
109
|
+
});
|
|
110
|
+
this.assignMembersButton = page.getByRole('button', {
|
|
111
|
+
name: 'assign members',
|
|
112
|
+
});
|
|
113
|
+
this.assignMembersSubButton = page
|
|
114
|
+
.getByRole('button', {
|
|
115
|
+
name: 'assign',
|
|
116
|
+
})
|
|
117
|
+
.last();
|
|
118
|
+
this.assignMembersSearchbox = page.getByRole('searchbox', {
|
|
119
|
+
name: 'search by full name or email address',
|
|
120
|
+
});
|
|
121
|
+
this.assignMembersSearchResult = page.locator('.cds--list-box__menu-item');
|
|
122
|
+
this.organizationManagementLink = page.getByRole('link', {
|
|
123
|
+
name: 'organization management',
|
|
124
|
+
});
|
|
125
|
+
this.deleteButton = page.getByRole('button', { name: 'delete' });
|
|
126
|
+
this.deleteSubButton = page
|
|
127
|
+
.getByRole('button', {
|
|
128
|
+
name: 'danger',
|
|
129
|
+
})
|
|
130
|
+
.last();
|
|
131
|
+
// Camunda Hub's design-system Organization Management page renamed the
|
|
132
|
+
// Carbon TableToolbarSearch's default "Filter table" label to plain
|
|
133
|
+
// "Search" (same rename already ported elsewhere for the secrets
|
|
134
|
+
// panels). Confirmed against camunda-hub's own
|
|
135
|
+
// e2e-playwright/pages/Console/ConsoleOrgManagementPage.ts, which already
|
|
136
|
+
// uses `getByRole('searchbox', {name: 'Search'})` for this exact users
|
|
137
|
+
// list. Match either.
|
|
138
|
+
this.filterTableSearchbox = page
|
|
139
|
+
.getByRole('searchbox', { name: 'Filter table' })
|
|
140
|
+
.or(page.getByRole('searchbox', { name: 'Search' }));
|
|
141
|
+
}
|
|
142
|
+
async filterTable(names) {
|
|
143
|
+
for (const name of names) {
|
|
144
|
+
await this.filterTableSearchbox.click({ timeout: 60000 });
|
|
145
|
+
await this.filterTableSearchbox.fill(name);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
async clickProcessIdInput() {
|
|
149
|
+
await (0, test_1.expect)(this.idComboBox).toBeVisible({ timeout: 60000 });
|
|
150
|
+
await this.idComboBox.click();
|
|
151
|
+
}
|
|
152
|
+
async fillProcessIdInput(processId) {
|
|
153
|
+
await this.idComboBox.fill(processId);
|
|
154
|
+
}
|
|
155
|
+
async checkReadPermissionCheckbox() {
|
|
156
|
+
await (0, test_1.expect)(this.readPermissionCheckbox).toBeVisible({ timeout: 60000 });
|
|
157
|
+
if (!(await this.readPermissionCheckbox.isChecked())) {
|
|
158
|
+
await this.readPermissionCheckbox.click({ force: true });
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
async checkStartInstancePermissionCheckbox() {
|
|
162
|
+
if (!(await this.startProcessIPermissionCheckbox.isChecked({ timeout: 60000 }))) {
|
|
163
|
+
await this.startProcessIPermissionCheckbox.click({ force: true });
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
async clickUsersTab() {
|
|
167
|
+
await this.usersTab.click({ timeout: 60000 });
|
|
168
|
+
}
|
|
169
|
+
async selectAnalystRole(username) {
|
|
170
|
+
await this.filterTable([username]);
|
|
171
|
+
await this.clickOptionsButton(username);
|
|
172
|
+
await this.clickEditUserMenuItem(username);
|
|
173
|
+
// Analyst now includes Member, so Member stays selected -- only ensure the
|
|
174
|
+
// user is not also an Organization Admin. (Previously this unchecked the
|
|
175
|
+
// Modeler role, which the new role model folds into Member.)
|
|
176
|
+
await this.checkAnalystCheckbox();
|
|
177
|
+
await this.uncheckAdminCheckbox();
|
|
178
|
+
await this.clickConfirmButton();
|
|
179
|
+
await (0, test_1.expect)(this.page.getByText('Updating...')).not.toBeVisible({
|
|
180
|
+
timeout: 90000,
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
async selectModelerRole(username) {
|
|
184
|
+
await this.filterTable([username]);
|
|
185
|
+
await this.clickOptionsButton(username);
|
|
186
|
+
await this.clickEditUserMenuItem(username);
|
|
187
|
+
await this.uncheckAnalystCheckbox();
|
|
188
|
+
await this.uncheckAdminCheckbox();
|
|
189
|
+
await this.checkModelerCheckbox();
|
|
190
|
+
await this.clickConfirmButton();
|
|
191
|
+
await (0, test_1.expect)(this.page.getByText('Updating...')).not.toBeVisible({
|
|
192
|
+
timeout: 90000,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
async selectAdminRole(username) {
|
|
196
|
+
await this.filterTable([username]);
|
|
197
|
+
await this.clickOptionsButton(username);
|
|
198
|
+
await this.clickEditUserMenuItem(username);
|
|
199
|
+
// Grant Organization Admin and drop Analyst; Member is left as-is (the new
|
|
200
|
+
// role model folds the former Modeler role into Member, and Organization
|
|
201
|
+
// Admin is a super-user regardless of it).
|
|
202
|
+
await this.uncheckAnalystCheckbox();
|
|
203
|
+
await this.checkAdminCheckbox();
|
|
204
|
+
await this.clickConfirmButton();
|
|
205
|
+
await (0, test_1.expect)(this.page.getByText('Updating...')).not.toBeVisible({
|
|
206
|
+
timeout: 90000,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
// Scoped to the user's own row: the table can still list other users when
|
|
210
|
+
// the menu opens, and a page-wide `.first()` would edit their roles.
|
|
211
|
+
userOptionsButton(username) {
|
|
212
|
+
const row = this.page.getByRole('row').filter({ hasText: username });
|
|
213
|
+
return row
|
|
214
|
+
.getByRole('button', { name: 'Options' })
|
|
215
|
+
.or(row.getByRole('button', { name: 'Row actions' }))
|
|
216
|
+
.first();
|
|
217
|
+
}
|
|
218
|
+
async clickOptionsButton(username) {
|
|
219
|
+
await this.userOptionsButton(username).click({ timeout: 60000 });
|
|
220
|
+
}
|
|
221
|
+
async clickEditUserMenuItem(username) {
|
|
222
|
+
// Hub's row menu is a Radix dropdown that animates in and re-mounts its
|
|
223
|
+
// items while opening. A live run against the nightly org resolved this
|
|
224
|
+
// item correctly -- <div role="menuitem" data-slot="dropdown-menu-item">
|
|
225
|
+
// Edit user</div> -- and still failed the click: "element is not stable"
|
|
226
|
+
// twice, then "element was detached from the DOM, retrying" until the 60s
|
|
227
|
+
// budget ran out. A detached item means the menu itself went away, so
|
|
228
|
+
// clicking harder cannot help; re-open it and retry the pair as one unit,
|
|
229
|
+
// gated on the dialog actually opening.
|
|
230
|
+
await (0, test_1.expect)(async () => {
|
|
231
|
+
if (!(await this.editUserMenuItem.isVisible().catch(() => false))) {
|
|
232
|
+
await this.clickOptionsButton(username);
|
|
233
|
+
}
|
|
234
|
+
await this.editUserMenuItem.click({ timeout: 10000 });
|
|
235
|
+
await (0, test_1.expect)(this.dialog.first()).toBeVisible({ timeout: 10000 });
|
|
236
|
+
}).toPass({ timeout: 120000, intervals: [1000, 2000, 5000] });
|
|
237
|
+
}
|
|
238
|
+
async checkModelerCheckbox() {
|
|
239
|
+
if (!(await this.modelerCheckbox.isChecked({ timeout: 60000 }))) {
|
|
240
|
+
await this.modelerCheckbox.click({ timeout: 60000 });
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async checkAdminCheckbox() {
|
|
244
|
+
if (!(await this.adminCheckbox.isChecked({ timeout: 60000 }))) {
|
|
245
|
+
await this.adminCheckbox.click({ timeout: 60000 });
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
async checkAnalystCheckbox() {
|
|
249
|
+
if (!(await this.analystCheckbox.isChecked({ timeout: 60000 }))) {
|
|
250
|
+
await this.analystCheckbox.click({ timeout: 60000 });
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
async uncheckAnalystCheckbox() {
|
|
254
|
+
if (await this.analystCheckbox.isChecked({ timeout: 60000 })) {
|
|
255
|
+
await this.analystCheckbox.click({ timeout: 60000 });
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
async uncheckModelerCheckbox() {
|
|
259
|
+
if (await this.modelerCheckbox.isChecked({ timeout: 60000 })) {
|
|
260
|
+
await this.modelerCheckbox.click({ timeout: 60000 });
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
async uncheckAdminCheckbox() {
|
|
264
|
+
if (await this.adminCheckbox.isChecked({ timeout: 60000 })) {
|
|
265
|
+
await this.adminCheckbox.click({ timeout: 60000 });
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async clickConfirmButton() {
|
|
269
|
+
await this.confirmButton.click({ timeout: 60000 });
|
|
270
|
+
}
|
|
271
|
+
async clickSettingsTab() {
|
|
272
|
+
await this.settingsTab.click({ timeout: 30000 });
|
|
273
|
+
try {
|
|
274
|
+
await (0, test_1.expect)(this.page.getByRole('heading', { name: 'Alpha features' })).toBeVisible({
|
|
275
|
+
timeout: 120000,
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
await this.settingsTab.click({ timeout: 30000 });
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
async clickOptInButton() {
|
|
283
|
+
await this.optInButton.click({ timeout: 60000 });
|
|
284
|
+
}
|
|
285
|
+
async enableAlphaFeature(name) {
|
|
286
|
+
const maxRetries = 3;
|
|
287
|
+
for (let retries = 0; retries < maxRetries; retries++) {
|
|
288
|
+
try {
|
|
289
|
+
await this.clickSettingsTab();
|
|
290
|
+
await this.optInToAlphaFeatures();
|
|
291
|
+
await (0, sleep_1.sleep)(30000);
|
|
292
|
+
await this.page.reload();
|
|
293
|
+
await this.clickSettingsTab();
|
|
294
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
295
|
+
visibilityTimeout: 15000,
|
|
296
|
+
totalTimeout: 90000,
|
|
297
|
+
postAction: async () => {
|
|
298
|
+
await this.page.reload();
|
|
299
|
+
},
|
|
300
|
+
});
|
|
301
|
+
const alphaFeature = this.rows.filter({ hasText: name }).first();
|
|
302
|
+
if ((await alphaFeature.count()) < 1) {
|
|
303
|
+
// Returning here used to report the feature as enabled while nothing
|
|
304
|
+
// had been enabled at all, so the org silently stayed opted out and
|
|
305
|
+
// every dependent spec failed later on a missing UI affordance.
|
|
306
|
+
// Throw instead: the surrounding loop reloads and retries, and a
|
|
307
|
+
// genuinely absent row fails this step where the cause is visible.
|
|
308
|
+
throw new Error(`No alpha feature(${name}) is found.`);
|
|
309
|
+
}
|
|
310
|
+
//Opt-in The Alpha Feature
|
|
311
|
+
const alphaFeatureOptInButton = alphaFeature.getByRole('button', {
|
|
312
|
+
name: 'Opt in to enable',
|
|
313
|
+
});
|
|
314
|
+
if (await alphaFeatureOptInButton.isVisible({ timeout: 10000 })) {
|
|
315
|
+
await alphaFeatureOptInButton.click({ timeout: 30000 });
|
|
316
|
+
await this.optInAICheckbox.scrollIntoViewIfNeeded();
|
|
317
|
+
await this.optInAICheckbox.check({ timeout: 30000 });
|
|
318
|
+
await (0, sleep_1.sleep)(3000);
|
|
319
|
+
}
|
|
320
|
+
//Enable Alpha Feature
|
|
321
|
+
const toggleText = await alphaFeature
|
|
322
|
+
.locator('[class= "cds--toggle__text"]')
|
|
323
|
+
.textContent();
|
|
324
|
+
console.info(`Previous feature(${name}) setting is ${toggleText}.`);
|
|
325
|
+
if (toggleText == 'Enabled') {
|
|
326
|
+
console.log(`Feature ${name} is already enabled.`);
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
if (toggleText == 'Disabled') {
|
|
330
|
+
await alphaFeature
|
|
331
|
+
.locator('[class= "cds--toggle__switch"]')
|
|
332
|
+
.first()
|
|
333
|
+
.click();
|
|
334
|
+
await (0, sleep_1.sleep)(10000);
|
|
335
|
+
}
|
|
336
|
+
await (0, test_1.expect)(alphaFeature.locator('[class= "cds--toggle__text"]')).toHaveText('Enabled');
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
catch (error) {
|
|
340
|
+
console.error(`Click attempt ${retries + 1} failed: ${error}`);
|
|
341
|
+
await this.page.reload();
|
|
342
|
+
await (0, sleep_1.sleep)(10000);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
throw new Error(`Failed to eanble alpha feature ${name} after ${maxRetries} attempts.`);
|
|
346
|
+
}
|
|
347
|
+
async scrollToOptInCheckbox() {
|
|
348
|
+
await this.page.locator('.ps-contract-scroll').evaluate((el) => {
|
|
349
|
+
el.scrollTop = el.scrollHeight;
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
async checkOptInCheckbox() {
|
|
353
|
+
await this.optInCheckbox.check({ timeout: 90000 });
|
|
354
|
+
}
|
|
355
|
+
async clickMainUser() {
|
|
356
|
+
await (0, test_1.expect)(this.mainUser).toBeVisible({ timeout: 60000 });
|
|
357
|
+
await this.mainUser.click();
|
|
358
|
+
}
|
|
359
|
+
async clickNewContextPadButton() {
|
|
360
|
+
try {
|
|
361
|
+
await (0, test_1.expect)(this.newContextPadButtonText).toHaveText('Enabled', {
|
|
362
|
+
timeout: 90000,
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
catch {
|
|
366
|
+
await this.page.reload();
|
|
367
|
+
await this.newContextPadButton.click({ timeout: 90000 });
|
|
368
|
+
await (0, test_1.expect)(this.newContextPadButtonText).toHaveText('Enabled', {
|
|
369
|
+
timeout: 60000,
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
async optInToAlphaFeatures() {
|
|
374
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.rows.first(), {
|
|
375
|
+
visibilityTimeout: 60000,
|
|
376
|
+
totalTimeout: 140000,
|
|
377
|
+
postAction: async () => {
|
|
378
|
+
await this.page.reload();
|
|
379
|
+
},
|
|
380
|
+
});
|
|
381
|
+
try {
|
|
382
|
+
await (0, test_1.expect)(this.optInButton).toBeVisible({ timeout: 30000 });
|
|
383
|
+
await this.clickOptInButton();
|
|
384
|
+
await this.scrollToOptInCheckbox();
|
|
385
|
+
await this.checkOptInCheckbox();
|
|
386
|
+
}
|
|
387
|
+
catch {
|
|
388
|
+
await (0, test_1.expect)(this.optInButton).not.toBeVisible();
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
async clickGroupsTab() {
|
|
392
|
+
await this.groupsTab.click({ timeout: 60000 });
|
|
393
|
+
}
|
|
394
|
+
async clickCreateGroupButton() {
|
|
395
|
+
const maxRetries = 3;
|
|
396
|
+
for (let retries = 0; retries < maxRetries; retries++) {
|
|
397
|
+
try {
|
|
398
|
+
if (!(await this.noGroupsHeading.isVisible({ timeout: 120000 }))) {
|
|
399
|
+
await this.createGroupButton.click();
|
|
400
|
+
}
|
|
401
|
+
else {
|
|
402
|
+
await this.createFirstGroupButton.click();
|
|
403
|
+
}
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
catch (error) {
|
|
407
|
+
console.error(`Click attempt ${retries + 1} failed`);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
|
|
411
|
+
}
|
|
412
|
+
async fillGroupNameInput(name) {
|
|
413
|
+
await this.groupNameInput.fill(name);
|
|
414
|
+
}
|
|
415
|
+
async clickCreateGroupSubButton() {
|
|
416
|
+
await this.createGroupSubButton.click();
|
|
417
|
+
}
|
|
418
|
+
async clickUserGroup(name) {
|
|
419
|
+
await this.page.getByRole('cell', { name: name }).click();
|
|
420
|
+
}
|
|
421
|
+
async clickAssignMembers() {
|
|
422
|
+
await this.assignMembersButton.click();
|
|
423
|
+
}
|
|
424
|
+
async fillAssignMembers(names) {
|
|
425
|
+
for (const name of names) {
|
|
426
|
+
await this.assignMembersSearchbox.click();
|
|
427
|
+
await this.assignMembersSearchbox.fill(name);
|
|
428
|
+
await this.assignMembersSearchResult
|
|
429
|
+
.filter({ hasText: name })
|
|
430
|
+
.click({ timeout: 120000 });
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
async clickAssignSubButton() {
|
|
434
|
+
await this.assignMembersSubButton.click();
|
|
435
|
+
}
|
|
436
|
+
async clickOrganizationManagementLink() {
|
|
437
|
+
await this.organizationManagementLink.click();
|
|
438
|
+
}
|
|
439
|
+
async deleteAllGroups() {
|
|
440
|
+
try {
|
|
441
|
+
await this.deleteButton
|
|
442
|
+
.first()
|
|
443
|
+
.waitFor({ state: 'visible', timeout: 60000 });
|
|
444
|
+
const count = await this.deleteButton.count();
|
|
445
|
+
if (count > 0) {
|
|
446
|
+
for (let i = 0; i < count; i++) {
|
|
447
|
+
await this.deleteButton.nth(i).click({ timeout: 60000 });
|
|
448
|
+
await this.deleteSubButton.click({ timeout: 60000 });
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
catch (error) {
|
|
453
|
+
console.log('Delete Button Not Clicked ' + error);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
exports.ConsoleOrganizationPage = ConsoleOrganizationPage;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Page, Locator } from '@playwright/test';
|
|
2
|
+
declare class DataFiltersPage {
|
|
3
|
+
private page;
|
|
4
|
+
readonly dataFiltersSection: Locator;
|
|
5
|
+
readonly dataFiltersHeading: Locator;
|
|
6
|
+
readonly variableFilterToggle: Locator;
|
|
7
|
+
readonly includeVariableNamesInput: Locator;
|
|
8
|
+
readonly excludeVariableNamesInput: Locator;
|
|
9
|
+
readonly includeProcessDefinitionsInput: Locator;
|
|
10
|
+
readonly excludeProcessDefinitionsInput: Locator;
|
|
11
|
+
readonly saveButton: Locator;
|
|
12
|
+
readonly rollingRestartNotice: Locator;
|
|
13
|
+
readonly validationError: Locator;
|
|
14
|
+
readonly confirmSaveButton: Locator;
|
|
15
|
+
constructor(page: Page);
|
|
16
|
+
assertDataFiltersSectionVisible(): Promise<void>;
|
|
17
|
+
enableVariableFilter(): Promise<void>;
|
|
18
|
+
disableVariableFilter(): Promise<void>;
|
|
19
|
+
addIncludeVariableName(value: string): Promise<void>;
|
|
20
|
+
addExcludeVariableName(value: string): Promise<void>;
|
|
21
|
+
addIncludeProcessDefinition(value: string): Promise<void>;
|
|
22
|
+
addExcludeProcessDefinition(value: string): Promise<void>;
|
|
23
|
+
save(): Promise<void>;
|
|
24
|
+
assertRollingRestartNotice(): Promise<void>;
|
|
25
|
+
assertValidationError(): Promise<void>;
|
|
26
|
+
assertChipVisible(value: string): Promise<void>;
|
|
27
|
+
removeChip(value: string): Promise<void>;
|
|
28
|
+
assertControlsDisabled(): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export { DataFiltersPage };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DataFiltersPage = void 0;
|
|
4
|
+
const test_1 = require("@playwright/test");
|
|
5
|
+
class DataFiltersPage {
|
|
6
|
+
page;
|
|
7
|
+
dataFiltersSection;
|
|
8
|
+
dataFiltersHeading;
|
|
9
|
+
variableFilterToggle;
|
|
10
|
+
includeVariableNamesInput;
|
|
11
|
+
excludeVariableNamesInput;
|
|
12
|
+
includeProcessDefinitionsInput;
|
|
13
|
+
excludeProcessDefinitionsInput;
|
|
14
|
+
saveButton;
|
|
15
|
+
rollingRestartNotice;
|
|
16
|
+
validationError;
|
|
17
|
+
confirmSaveButton;
|
|
18
|
+
constructor(page) {
|
|
19
|
+
this.page = page;
|
|
20
|
+
this.dataFiltersHeading = page
|
|
21
|
+
.getByRole('heading', { name: /data filters/i })
|
|
22
|
+
.or(page.getByText(/data filters/i))
|
|
23
|
+
.first();
|
|
24
|
+
this.dataFiltersSection = page
|
|
25
|
+
.getByRole('region', { name: /data filters/i })
|
|
26
|
+
.or(page
|
|
27
|
+
.locator('section, div')
|
|
28
|
+
.filter({ has: page.getByText(/data filters/i) }))
|
|
29
|
+
.first();
|
|
30
|
+
this.variableFilterToggle = page
|
|
31
|
+
.getByRole('switch', { name: /variable filter/i })
|
|
32
|
+
.or(page.locator('.cds--toggle').filter({ hasText: /variable filter/i }))
|
|
33
|
+
.first();
|
|
34
|
+
this.includeVariableNamesInput = page
|
|
35
|
+
.getByRole('textbox', { name: /include variable names/i })
|
|
36
|
+
.or(page.getByLabel(/include variable names/i))
|
|
37
|
+
.first();
|
|
38
|
+
this.excludeVariableNamesInput = page
|
|
39
|
+
.getByRole('textbox', { name: /exclude variable names/i })
|
|
40
|
+
.or(page.getByLabel(/exclude variable names/i))
|
|
41
|
+
.first();
|
|
42
|
+
this.includeProcessDefinitionsInput = page
|
|
43
|
+
.getByRole('textbox', { name: /include process definitions/i })
|
|
44
|
+
.or(page.getByLabel(/include process definitions/i))
|
|
45
|
+
.first();
|
|
46
|
+
this.excludeProcessDefinitionsInput = page
|
|
47
|
+
.getByRole('textbox', { name: /exclude process definitions/i })
|
|
48
|
+
.or(page.getByLabel(/exclude process definitions/i))
|
|
49
|
+
.first();
|
|
50
|
+
this.saveButton = page
|
|
51
|
+
.getByRole('button', { name: /^save/i })
|
|
52
|
+
.or(page.locator('button.cds--btn--primary').filter({ hasText: /save/i }))
|
|
53
|
+
.first();
|
|
54
|
+
this.confirmSaveButton = page
|
|
55
|
+
.getByRole('dialog')
|
|
56
|
+
.getByRole('button', { name: /save|confirm|continue/i })
|
|
57
|
+
.first();
|
|
58
|
+
this.rollingRestartNotice = page.getByText(/rolling restart/i).first();
|
|
59
|
+
this.validationError = page
|
|
60
|
+
.locator('.cds--form-requirement, [role="alert"]')
|
|
61
|
+
.or(page.getByText(/invalid|required|cannot be empty|maximum length/i))
|
|
62
|
+
.first();
|
|
63
|
+
}
|
|
64
|
+
async assertDataFiltersSectionVisible() {
|
|
65
|
+
await (0, test_1.expect)(this.dataFiltersHeading).toBeVisible({ timeout: 60000 });
|
|
66
|
+
}
|
|
67
|
+
async enableVariableFilter() {
|
|
68
|
+
if (await this.variableFilterToggle.isVisible({ timeout: 30000 })) {
|
|
69
|
+
const checked = await this.variableFilterToggle
|
|
70
|
+
.getAttribute('aria-checked')
|
|
71
|
+
.catch(() => null);
|
|
72
|
+
if (checked !== 'true') {
|
|
73
|
+
await this.variableFilterToggle.click({ timeout: 30000 });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
async disableVariableFilter() {
|
|
78
|
+
if (await this.variableFilterToggle.isVisible({ timeout: 30000 })) {
|
|
79
|
+
const checked = await this.variableFilterToggle
|
|
80
|
+
.getAttribute('aria-checked')
|
|
81
|
+
.catch(() => null);
|
|
82
|
+
if (checked === 'true') {
|
|
83
|
+
await this.variableFilterToggle.click({ timeout: 30000 });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async addIncludeVariableName(value) {
|
|
88
|
+
await this.includeVariableNamesInput.fill(value, { timeout: 30000 });
|
|
89
|
+
await this.includeVariableNamesInput.press('Enter');
|
|
90
|
+
}
|
|
91
|
+
async addExcludeVariableName(value) {
|
|
92
|
+
await this.excludeVariableNamesInput.fill(value, { timeout: 30000 });
|
|
93
|
+
await this.excludeVariableNamesInput.press('Enter');
|
|
94
|
+
}
|
|
95
|
+
async addIncludeProcessDefinition(value) {
|
|
96
|
+
await this.includeProcessDefinitionsInput.fill(value, { timeout: 30000 });
|
|
97
|
+
await this.includeProcessDefinitionsInput.press('Enter');
|
|
98
|
+
}
|
|
99
|
+
async addExcludeProcessDefinition(value) {
|
|
100
|
+
await this.excludeProcessDefinitionsInput.fill(value, { timeout: 30000 });
|
|
101
|
+
await this.excludeProcessDefinitionsInput.press('Enter');
|
|
102
|
+
}
|
|
103
|
+
async save() {
|
|
104
|
+
await this.saveButton.click({ timeout: 30000 });
|
|
105
|
+
if (await this.confirmSaveButton
|
|
106
|
+
.isVisible({ timeout: 10000 })
|
|
107
|
+
.catch(() => false)) {
|
|
108
|
+
await this.confirmSaveButton.click({ timeout: 30000 });
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
async assertRollingRestartNotice() {
|
|
112
|
+
await (0, test_1.expect)(this.rollingRestartNotice).toBeVisible({ timeout: 30000 });
|
|
113
|
+
}
|
|
114
|
+
async assertValidationError() {
|
|
115
|
+
await (0, test_1.expect)(this.validationError).toBeVisible({ timeout: 30000 });
|
|
116
|
+
}
|
|
117
|
+
async assertChipVisible(value) {
|
|
118
|
+
await (0, test_1.expect)(this.page.getByText(value, { exact: false }).first()).toBeVisible({ timeout: 30000 });
|
|
119
|
+
}
|
|
120
|
+
async removeChip(value) {
|
|
121
|
+
const chip = this.page
|
|
122
|
+
.locator('.cds--tag, [class*="chip"], [class*="tag"]')
|
|
123
|
+
.filter({ hasText: value })
|
|
124
|
+
.first();
|
|
125
|
+
const removeButton = chip
|
|
126
|
+
.getByRole('button')
|
|
127
|
+
.or(chip.locator('button, [aria-label*="remove" i], [aria-label*="clear" i]'))
|
|
128
|
+
.first();
|
|
129
|
+
await removeButton.click({ timeout: 30000 });
|
|
130
|
+
}
|
|
131
|
+
async assertControlsDisabled() {
|
|
132
|
+
await (0, test_1.expect)(this.saveButton).toBeDisabled({ timeout: 30000 });
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.DataFiltersPage = DataFiltersPage;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Page, Locator } from '@playwright/test';
|
|
2
|
+
declare class FormJsPage {
|
|
3
|
+
private page;
|
|
4
|
+
private processApplicationPage;
|
|
5
|
+
readonly aiFormGeneratorButton: Locator;
|
|
6
|
+
readonly formRequestInput: Locator;
|
|
7
|
+
readonly generateFormButton: Locator;
|
|
8
|
+
readonly formEditor: Locator;
|
|
9
|
+
readonly filePicker: Locator;
|
|
10
|
+
readonly textField: Locator;
|
|
11
|
+
readonly documentPreview: Locator;
|
|
12
|
+
readonly keyInput: Locator;
|
|
13
|
+
readonly uploadMultipleFilesToggle: Locator;
|
|
14
|
+
readonly documentReferenceInput: Locator;
|
|
15
|
+
readonly generalPanel: Locator;
|
|
16
|
+
readonly textFieldInForm: Locator;
|
|
17
|
+
readonly deployButton: Locator;
|
|
18
|
+
readonly deploySubButton: Locator;
|
|
19
|
+
readonly dialog: Locator;
|
|
20
|
+
readonly deploySuccessNotification: Locator;
|
|
21
|
+
constructor(page: Page);
|
|
22
|
+
generateAIForm(request?: string): Promise<void>;
|
|
23
|
+
clickAIFormGeneratorButton(): Promise<void>;
|
|
24
|
+
clickFormRequestInput(): Promise<void>;
|
|
25
|
+
fillFormRequestInput(formRequest: string): Promise<void>;
|
|
26
|
+
clickGenerateFormButton(): Promise<void>;
|
|
27
|
+
dragAndDrop(source: Locator, target: Locator): Promise<void>;
|
|
28
|
+
fillKeyInput(key: string): Promise<void>;
|
|
29
|
+
enableUploadMultipleFiles(): Promise<void>;
|
|
30
|
+
filldocumentReferenceInput(key: string): Promise<void>;
|
|
31
|
+
clickGeneralPropertiesPanel(): Promise<void>;
|
|
32
|
+
selectCluster(clusterName: string): Promise<void>;
|
|
33
|
+
clickDeployButton(): Promise<void>;
|
|
34
|
+
clickDeploySubButton(): Promise<void>;
|
|
35
|
+
selectOnlyThisResource(): Promise<void>;
|
|
36
|
+
deployForm(clusterName: string): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
export { FormJsPage };
|