@camunda/e2e-test-suite 0.0.471 → 0.0.473
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/SM-8.8/KeycloakUtils.js +6 -1
- package/dist/pages/SM-8.8/NavigationPage.d.ts +4 -0
- package/dist/pages/SM-8.8/NavigationPage.js +7 -3
- package/dist/pages/SM-8.9/NavigationPage.d.ts +4 -0
- package/dist/pages/SM-8.9/NavigationPage.js +3 -0
- package/dist/tests/SM-8.9/smoke-tests.spec.js +6 -1
- package/package.json +1 -1
|
@@ -65,7 +65,12 @@ const createIdentityUser = async (navigationPage, managementIdentity, username)
|
|
|
65
65
|
await managementIdentity.clickAddButton();
|
|
66
66
|
};
|
|
67
67
|
const createOCUser = async (navigationPage, ocIdentityHomePage, ocIdentityRolesPage, username) => {
|
|
68
|
-
|
|
68
|
+
if (process.env.IS_MT === 'true') {
|
|
69
|
+
await navigationPage.goToOCAdmin();
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
await navigationPage.goToOCIdentity();
|
|
73
|
+
}
|
|
69
74
|
await ocIdentityHomePage.clickRolesTab();
|
|
70
75
|
await ocIdentityRolesPage.clickAdminRole();
|
|
71
76
|
await ocIdentityRolesPage.assignUserToRole(username);
|
|
@@ -35,6 +35,10 @@ declare class NavigationPage {
|
|
|
35
35
|
username: string;
|
|
36
36
|
password: string;
|
|
37
37
|
}): Promise<void>;
|
|
38
|
+
goToOCAdmin(sleepTimeout?: number, credentials?: {
|
|
39
|
+
username: string;
|
|
40
|
+
password: string;
|
|
41
|
+
}): Promise<void>;
|
|
38
42
|
goToConsole(sleepTimeout?: number, credentials?: {
|
|
39
43
|
username: string;
|
|
40
44
|
password: string;
|
|
@@ -29,9 +29,10 @@ class NavigationPage {
|
|
|
29
29
|
this.optimizePageBanner = page.getByRole('link', {
|
|
30
30
|
name: 'Camunda logo Optimize',
|
|
31
31
|
});
|
|
32
|
-
this.identityPageBanner = page
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
this.identityPageBanner = page
|
|
33
|
+
.locator('a')
|
|
34
|
+
.filter({ hasText: /^Camunda logo\s*(Identity|Admin)$/ })
|
|
35
|
+
.first();
|
|
35
36
|
this.consolePageBanner = page.getByRole('link', {
|
|
36
37
|
name: 'Camunda logo Console',
|
|
37
38
|
});
|
|
@@ -117,6 +118,9 @@ class NavigationPage {
|
|
|
117
118
|
async goToOCIdentity(sleepTimeout, credentials) {
|
|
118
119
|
await this.goTo('/orchestration/identity', this.identityPageBanner, sleepTimeout, credentials);
|
|
119
120
|
}
|
|
121
|
+
async goToOCAdmin(sleepTimeout, credentials) {
|
|
122
|
+
await this.goTo('/orchestration/admin', this.identityPageBanner, sleepTimeout, credentials);
|
|
123
|
+
}
|
|
120
124
|
async goToConsole(sleepTimeout, credentials) {
|
|
121
125
|
await this.goTo('/console', this.consolePageBanner, sleepTimeout, credentials);
|
|
122
126
|
}
|
|
@@ -35,6 +35,10 @@ declare class NavigationPage {
|
|
|
35
35
|
username: string;
|
|
36
36
|
password: string;
|
|
37
37
|
}): Promise<void>;
|
|
38
|
+
goToOCAdmin(sleepTimeout?: number, credentials?: {
|
|
39
|
+
username: string;
|
|
40
|
+
password: string;
|
|
41
|
+
}): Promise<void>;
|
|
38
42
|
goToConsole(sleepTimeout?: number, credentials?: {
|
|
39
43
|
username: string;
|
|
40
44
|
password: string;
|
|
@@ -137,6 +137,9 @@ class NavigationPage {
|
|
|
137
137
|
async goToOCIdentity(sleepTimeout, credentials) {
|
|
138
138
|
await this.goTo(`${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/identity`, this.identityPageBanner, sleepTimeout, credentials);
|
|
139
139
|
}
|
|
140
|
+
async goToOCAdmin(sleepTimeout, credentials) {
|
|
141
|
+
await this.goTo(`${NORMALIZED_ORCHESTRATION_CONTEXT_PATH}/admin`, this.identityPageBanner, sleepTimeout, credentials);
|
|
142
|
+
}
|
|
140
143
|
async goToConsole(sleepTimeout, credentials) {
|
|
141
144
|
await this.goTo(CONSOLE_CONTEXT_PATH, this.consolePageBanner, sleepTimeout, credentials);
|
|
142
145
|
}
|
|
@@ -13,7 +13,12 @@ const env_1 = require("../../utils/env");
|
|
|
13
13
|
SM_8_9_1.test.describe.parallel('Smoke Tests', () => {
|
|
14
14
|
SM_8_9_1.test.beforeEach(async ({ navigationPage, managementIdentityPage, managementIdentityTenantPage, keycloakLoginPage, keycloakAdminPage, page, browser, loginPage, ocIdentityHomePage, ocIdentityRolesPage, }, testInfo) => {
|
|
15
15
|
if (process.env.IS_MIGRATION === 'true') {
|
|
16
|
-
|
|
16
|
+
if (process.env.IS_MT === 'true') {
|
|
17
|
+
await navigationPage.goToOCAdmin((testInfo.workerIndex + 1) * 1000);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
await navigationPage.goToOCIdentity((testInfo.workerIndex + 1) * 1000);
|
|
21
|
+
}
|
|
17
22
|
}
|
|
18
23
|
else {
|
|
19
24
|
console.log(`BeforeEach start: timeout = ${testInfo.timeout}`);
|