@camunda/e2e-test-suite 0.0.192 → 0.0.194
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.
|
@@ -28,7 +28,7 @@ class AppsPage {
|
|
|
28
28
|
this.modelerLink = page.getByRole('link', { name: 'Modeler', exact: true });
|
|
29
29
|
this.appSwitcherButton = page.getByLabel('App Switcher');
|
|
30
30
|
this.tasklistLink = page.getByRole('link', { name: 'Tasklist', exact: true });
|
|
31
|
-
this.identityLink = page.getByRole('link', { name:
|
|
31
|
+
this.identityLink = page.getByRole('link', { name: /^(Admin|Identity)$/ });
|
|
32
32
|
this.operateLink = page.getByRole('link', { name: 'Operate', exact: true });
|
|
33
33
|
this.optimizeLink = page.getByRole('link', { name: 'Optimize', exact: true });
|
|
34
34
|
this.consoleLink = page.getByRole('link', { name: 'Console', exact: true });
|
|
@@ -45,7 +45,7 @@ class AppsPage {
|
|
|
45
45
|
.filter({ hasText: 'Operate' });
|
|
46
46
|
this.identityListItem = this.page
|
|
47
47
|
.getByRole('listitem')
|
|
48
|
-
.filter({ hasText:
|
|
48
|
+
.filter({ hasText: /Admin|Identity/ }); // Identity Should be removed after https://github.com/camunda/camunda/issues/46447 is fixed
|
|
49
49
|
this.operateButton = page.getByRole('button', {
|
|
50
50
|
name: 'Operate',
|
|
51
51
|
exact: true,
|
|
@@ -59,8 +59,7 @@ class AppsPage {
|
|
|
59
59
|
exact: true,
|
|
60
60
|
});
|
|
61
61
|
this.identityButton = page.getByRole('button', {
|
|
62
|
-
name:
|
|
63
|
-
exact: true,
|
|
62
|
+
name: /^(Admin|Identity)$/, // Identity Should be removed after https://github.com/camunda/camunda/issues/46447 is fixed
|
|
64
63
|
});
|
|
65
64
|
}
|
|
66
65
|
async clickCluster(component, name) {
|
|
@@ -2,7 +2,7 @@ import { Page, Locator } from '@playwright/test';
|
|
|
2
2
|
declare class OCIdentityHomePage {
|
|
3
3
|
private page;
|
|
4
4
|
readonly groupsTab: Locator;
|
|
5
|
-
readonly
|
|
5
|
+
readonly adminBanner: Locator;
|
|
6
6
|
readonly mappingRulesTab: Locator;
|
|
7
7
|
readonly tenantsTab: Locator;
|
|
8
8
|
readonly rolesTab: Locator;
|
|
@@ -6,7 +6,7 @@ const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLoc
|
|
|
6
6
|
class OCIdentityHomePage {
|
|
7
7
|
page;
|
|
8
8
|
groupsTab;
|
|
9
|
-
|
|
9
|
+
adminBanner;
|
|
10
10
|
mappingRulesTab;
|
|
11
11
|
tenantsTab;
|
|
12
12
|
rolesTab;
|
|
@@ -17,8 +17,8 @@ class OCIdentityHomePage {
|
|
|
17
17
|
licenseKeyTagCommercial;
|
|
18
18
|
constructor(page) {
|
|
19
19
|
this.page = page;
|
|
20
|
-
this.
|
|
21
|
-
name: 'Camunda logo
|
|
20
|
+
this.adminBanner = page.getByRole('link', {
|
|
21
|
+
name: 'Camunda logo Admin',
|
|
22
22
|
});
|
|
23
23
|
this.groupsTab = page
|
|
24
24
|
.getByRole('banner')
|
|
@@ -157,7 +157,7 @@ SM_8_9_1.test.describe('Identity User Flow Tests', () => {
|
|
|
157
157
|
await (0, test_1.expect)(page.getByText('You don’t have access to this component')).toBeVisible({
|
|
158
158
|
timeout: 120000,
|
|
159
159
|
});
|
|
160
|
-
await (0, test_1.expect)(ocIdentityHomePage.
|
|
160
|
+
await (0, test_1.expect)(ocIdentityHomePage.adminBanner).toBeVisible({
|
|
161
161
|
timeout: 10000,
|
|
162
162
|
});
|
|
163
163
|
});
|
|
@@ -201,7 +201,7 @@ SM_8_9_1.test.describe('Identity User Flow Tests', () => {
|
|
|
201
201
|
});
|
|
202
202
|
await SM_8_9_1.test.step('Log in with Test User and Ensure Identity is Accessible', async () => {
|
|
203
203
|
await navigationPage.goToOCIdentity(undefined, credentials);
|
|
204
|
-
await (0, test_1.expect)(ocIdentityHomePage.
|
|
204
|
+
await (0, test_1.expect)(ocIdentityHomePage.adminBanner).toBeVisible({
|
|
205
205
|
timeout: 10000,
|
|
206
206
|
});
|
|
207
207
|
});
|
|
@@ -17,7 +17,7 @@ SM_8_9_1.test.describe('Login Tests', () => {
|
|
|
17
17
|
});
|
|
18
18
|
(0, SM_8_9_1.test)('Orchestration Cluster Identity Basic Login', async ({ navigationPage, ocIdentityHomePage, }) => {
|
|
19
19
|
await navigationPage.goToOCIdentity();
|
|
20
|
-
await (0, test_1.expect)(ocIdentityHomePage.
|
|
20
|
+
await (0, test_1.expect)(ocIdentityHomePage.adminBanner).toBeVisible({
|
|
21
21
|
timeout: 120000,
|
|
22
22
|
});
|
|
23
23
|
});
|