@camunda/e2e-test-suite 0.0.283 → 0.0.285
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/dist/pages/8.8/ClusterDetailsPage.js +10 -0
- package/dist/pages/SM-8.10/FormJsPage.js +1 -3
- package/dist/pages/SM-8.10/ModelerCreatePage.js +4 -0
- package/dist/pages/SM-8.10/ModelerHomePage.js +2 -0
- package/dist/tests/8.8/navigation.spec.js +0 -1
- package/dist/tests/8.8/smoke-tests.spec.js +0 -1
- package/dist/tests/8.8/test-setup.spec.js +0 -1
- package/dist/tests/SM-8.10/smoke-tests.spec.js +0 -1
- package/dist/utils/formatDate.js +1 -1
- package/package.json +1 -1
|
@@ -186,11 +186,13 @@ class ClusterDetailsPage {
|
|
|
186
186
|
// Click the second toggle switch element
|
|
187
187
|
await toggleSwitchElements[1].click();
|
|
188
188
|
if (await this.dialog.isVisible({ timeout: 15000 })) {
|
|
189
|
+
await (0, test_1.expect)(this.rbaEnableButton).toBeVisible({ timeout: 30000 });
|
|
189
190
|
await this.rbaEnableButton.click({ timeout: 30000 });
|
|
190
191
|
await (0, test_1.expect)(this.page.getByText('Enabling...')).not.toBeVisible({
|
|
191
192
|
timeout: 60000,
|
|
192
193
|
});
|
|
193
194
|
}
|
|
195
|
+
await (0, sleep_1.sleep)(10000);
|
|
194
196
|
console.log('Second toggle switch clicked.');
|
|
195
197
|
}
|
|
196
198
|
else {
|
|
@@ -221,7 +223,15 @@ class ClusterDetailsPage {
|
|
|
221
223
|
if (toggleSwitchElements.length >= 2) {
|
|
222
224
|
// Click the second toggle switch element
|
|
223
225
|
await toggleSwitchElements[1].click();
|
|
226
|
+
if (await this.dialog.isVisible({ timeout: 15000 })) {
|
|
227
|
+
await (0, test_1.expect)(this.rbaDisableButton).toBeVisible({ timeout: 30000 });
|
|
228
|
+
await this.rbaDisableButton.click({ timeout: 30000 });
|
|
229
|
+
await (0, test_1.expect)(this.page.getByText('Disabling...')).not.toBeVisible({
|
|
230
|
+
timeout: 60000,
|
|
231
|
+
});
|
|
232
|
+
}
|
|
224
233
|
console.log('Second toggle switch clicked.');
|
|
234
|
+
await (0, sleep_1.sleep)(10000);
|
|
225
235
|
}
|
|
226
236
|
else {
|
|
227
237
|
console.log('Second toggle switch not found or less than 2.');
|
|
@@ -26,9 +26,7 @@ class FormJsPage {
|
|
|
26
26
|
this.generateFormButton = page.getByRole('button', { name: 'Generate form' });
|
|
27
27
|
this.formEditor = page.getByLabel('Form Definition');
|
|
28
28
|
this.filePicker = page.locator('button[data-field-type="filepicker"]');
|
|
29
|
-
this.generalPanel =
|
|
30
|
-
.locator('[data-group-id="group-general"]')
|
|
31
|
-
.first();
|
|
29
|
+
this.generalPanel = page.locator('[data-group-id="group-general"]').first();
|
|
32
30
|
this.keyInput = page.getByRole('textbox', { name: 'key' });
|
|
33
31
|
this.uploadMultipleFilesToggle = page.locator('div[data-entry-id="multiple"] .bio-properties-panel-toggle-switch__switcher');
|
|
34
32
|
this.documentReferenceInput = page.getByRole('textbox', {
|
|
@@ -529,11 +529,13 @@ class ModelerCreatePage {
|
|
|
529
529
|
}
|
|
530
530
|
async clickSecondPlacedGateway() {
|
|
531
531
|
try {
|
|
532
|
+
await (0, test_1.expect)(this.secondPlacedGateway).toBeVisible({ timeout: 30000 });
|
|
532
533
|
await this.secondPlacedGateway.click({ timeout: 3000 });
|
|
533
534
|
await this.appendElementButton.isVisible({ timeout: 3000 });
|
|
534
535
|
}
|
|
535
536
|
catch (error) {
|
|
536
537
|
await this.page.reload();
|
|
538
|
+
await (0, test_1.expect)(this.secondPlacedGateway).toBeVisible({ timeout: 30000 });
|
|
537
539
|
await this.secondPlacedGateway.click({ timeout: 3000 });
|
|
538
540
|
}
|
|
539
541
|
}
|
|
@@ -791,6 +793,7 @@ class ModelerCreatePage {
|
|
|
791
793
|
}
|
|
792
794
|
async fillPriorityInput(priority) {
|
|
793
795
|
await this.priorityInput.fill(priority, { timeout: 60000 });
|
|
796
|
+
await (0, sleep_1.sleep)(1000);
|
|
794
797
|
}
|
|
795
798
|
async clickCanvas() {
|
|
796
799
|
await this.canvas.click({ timeout: 60000 });
|
|
@@ -900,6 +903,7 @@ class ModelerCreatePage {
|
|
|
900
903
|
}
|
|
901
904
|
async fillCandidateGroupsInput(candidateGroup) {
|
|
902
905
|
await this.candidateGroupsInput.fill(candidateGroup, { timeout: 60000 });
|
|
906
|
+
await (0, sleep_1.sleep)(1000);
|
|
903
907
|
}
|
|
904
908
|
async clickAssigneeInput() {
|
|
905
909
|
await this.assigneeInput.click({ timeout: 60000 });
|
|
@@ -75,6 +75,7 @@ class ModelerHomePage {
|
|
|
75
75
|
await this.createNewProjectButton.click();
|
|
76
76
|
}
|
|
77
77
|
async enterNewProjectName(name) {
|
|
78
|
+
await (0, sleep_1.sleep)(1000);
|
|
78
79
|
await this.projectNameInput.click({ timeout: 60000 });
|
|
79
80
|
await this.projectNameInput.fill(name);
|
|
80
81
|
await this.projectNameInput.press('Enter');
|
|
@@ -148,6 +149,7 @@ class ModelerHomePage {
|
|
|
148
149
|
await this.formTemplateOption.click();
|
|
149
150
|
}
|
|
150
151
|
async enterFormName(name) {
|
|
152
|
+
await (0, sleep_1.sleep)(1000);
|
|
151
153
|
await this.formNameInput.click({ timeout: 60000 });
|
|
152
154
|
await this.formNameInput.fill(name);
|
|
153
155
|
await this.formNameInput.press('Enter');
|
|
@@ -9,7 +9,6 @@ const users_1 = require("../../utils/users");
|
|
|
9
9
|
const testUser = (0, users_1.getTestUser)('twentyFirstUser');
|
|
10
10
|
_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
11
11
|
_8_8_1.test.describe('Navigation Tests', () => {
|
|
12
|
-
_8_8_1.test.skip(process.env.IS_AG === 'true', 'Skipping Navigation Tests due to console breaking changes');
|
|
13
12
|
const clusterName = 'Test Cluster';
|
|
14
13
|
_8_8_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
15
14
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
@@ -18,7 +18,6 @@ const users_1 = require("../../utils/users");
|
|
|
18
18
|
const testUser = (0, users_1.getTestUser)('thirteenthUser');
|
|
19
19
|
_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
20
20
|
_8_8_1.test.describe('Smoke Tests', () => {
|
|
21
|
-
_8_8_1.test.skip(process.env.IS_AG === 'true', 'Skipping Smoke Tests due to console breaking changes');
|
|
22
21
|
const clusterName = 'Test Cluster';
|
|
23
22
|
_8_8_1.test.beforeEach(async ({ page, loginPage }, testInfo) => {
|
|
24
23
|
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, (testInfo.workerIndex + 1) * 1000);
|
|
@@ -9,7 +9,6 @@ const UtilitiesPage_1 = require("../../pages/8.8/UtilitiesPage");
|
|
|
9
9
|
const users_1 = require("../../utils/users");
|
|
10
10
|
_8_8_1.test.describe.configure({ mode: 'parallel' });
|
|
11
11
|
_8_8_1.test.describe('Cluster Setup Tests', () => {
|
|
12
|
-
_8_8_1.test.skip(process.env.IS_AG === 'true', 'Skipping Cluster Setup Tests due to console breaking changes');
|
|
13
12
|
_8_8_1.test.afterEach(async ({ page }, testInfo) => {
|
|
14
13
|
await (0, _setup_1.captureScreenshot)(page, testInfo);
|
|
15
14
|
await (0, _setup_1.captureFailureVideo)(page, testInfo);
|
|
@@ -9,7 +9,6 @@ const loggingUtils_1 = require("../../utils/loggingUtils");
|
|
|
9
9
|
const resetSession_1 = require("../../utils/resetSession");
|
|
10
10
|
const KeycloakUtils_1 = require("../../pages/SM-8.10/KeycloakUtils");
|
|
11
11
|
SM_8_10_1.test.describe.parallel('Smoke Tests', () => {
|
|
12
|
-
SM_8_10_1.test.skip(true, 'Skipped due to Identity/admin change, will check and re-enable once the changes are in place');
|
|
13
12
|
SM_8_10_1.test.beforeEach(async ({ navigationPage, managementIdentityPage, keycloakLoginPage, keycloakAdminPage, page, browser, loginPage, ocIdentityHomePage, ocIdentityRolesPage, }, testInfo) => {
|
|
14
13
|
if (process.env.IS_MIGRATION === 'true') {
|
|
15
14
|
await navigationPage.goToOCIdentity((testInfo.workerIndex + 1) * 1000);
|
package/dist/utils/formatDate.js
CHANGED
|
@@ -7,6 +7,6 @@ function formatDate(date = new Date()) {
|
|
|
7
7
|
const dayPattern = `0?${day}`;
|
|
8
8
|
const month = date.toLocaleString('en-GB', { month: 'short' });
|
|
9
9
|
const monthPattern = month === 'Sep' ? 'Sept?' : month;
|
|
10
|
-
return new RegExp(`${
|
|
10
|
+
return new RegExp(`${monthPattern} ${dayPattern}, ${year}`);
|
|
11
11
|
}
|
|
12
12
|
exports.formatDate = formatDate;
|