@camunda/e2e-test-suite 0.0.284 → 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.
|
@@ -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.');
|
|
@@ -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);
|
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;
|