@camunda/e2e-test-suite 0.0.472 → 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.
|
@@ -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
|
}
|