@camunda/e2e-test-suite 0.0.1089 → 0.0.1090
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.
|
@@ -21,6 +21,7 @@ declare class Authorization {
|
|
|
21
21
|
protected readonly deleteAuthorizationModalDeleteButton: Locator;
|
|
22
22
|
protected readonly tableFilter: Locator;
|
|
23
23
|
constructor(page: Page);
|
|
24
|
+
protected selectResourceType(resourceType: string): Promise<void>;
|
|
24
25
|
private selectAuthorizationOwner;
|
|
25
26
|
createAuthorization(authorization: {
|
|
26
27
|
ownerType: string;
|
|
@@ -98,6 +98,26 @@ class Authorization {
|
|
|
98
98
|
.or(page.getByRole('searchbox', { name: 'Search by owner ID' }))
|
|
99
99
|
.first();
|
|
100
100
|
}
|
|
101
|
+
// The Admin's Authorizations page is migrating onto the new design-system
|
|
102
|
+
// shell, which replaces the per-resource-type tabs with a single
|
|
103
|
+
// "Authorization type" filter combobox (identity/client ListV2.tsx, gated on
|
|
104
|
+
// isNewDesignSystemEnabled). Select the resource type through whichever this
|
|
105
|
+
// build renders: click the tab, or open the combobox and pick the option.
|
|
106
|
+
async selectResourceType(resourceType) {
|
|
107
|
+
const tab = this.selectResourceTypeTab(resourceType);
|
|
108
|
+
const filterCombobox = this.page.getByRole('combobox', {
|
|
109
|
+
name: 'Authorization type',
|
|
110
|
+
});
|
|
111
|
+
await (0, test_1.expect)(tab.or(filterCombobox)).toBeVisible({ timeout: 60000 });
|
|
112
|
+
if (await tab.isVisible()) {
|
|
113
|
+
await tab.click();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
await filterCombobox.click();
|
|
117
|
+
await this.page
|
|
118
|
+
.getByRole('option', { name: resourceType, exact: true })
|
|
119
|
+
.click({ timeout: 30000 });
|
|
120
|
+
}
|
|
101
121
|
// Released 8.10 alpha images still render the Carbon combobox that lists
|
|
102
122
|
// every owner, so accept whichever owner field this build shows.
|
|
103
123
|
async selectAuthorizationOwner(ownerId) {
|
|
@@ -2,34 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OCIdentityAuthorizationsPage = void 0;
|
|
4
4
|
const Authorization_1 = require("../SM-8.10/Authorization");
|
|
5
|
-
const test_1 = require("@playwright/test");
|
|
6
5
|
class OCIdentityAuthorizationsPage extends Authorization_1.Authorization {
|
|
7
6
|
constructor(page) {
|
|
8
7
|
super(page);
|
|
9
8
|
}
|
|
10
9
|
async clickProcessDefinitionTab() {
|
|
11
|
-
await
|
|
12
|
-
timeout: 60000,
|
|
13
|
-
});
|
|
14
|
-
await this.selectResourceTypeTab('PROCESS_DEFINITION').click();
|
|
10
|
+
await this.selectResourceType('PROCESS_DEFINITION');
|
|
15
11
|
}
|
|
16
12
|
async clickAuthorizationTab() {
|
|
17
|
-
await
|
|
18
|
-
timeout: 60000,
|
|
19
|
-
});
|
|
20
|
-
await this.selectResourceTypeTab('AUTHORIZATION').click();
|
|
13
|
+
await this.selectResourceType('AUTHORIZATION');
|
|
21
14
|
}
|
|
22
15
|
async clickComponentTab() {
|
|
23
|
-
await
|
|
24
|
-
timeout: 60000,
|
|
25
|
-
});
|
|
26
|
-
await this.selectResourceTypeTab('COMPONENT').click();
|
|
16
|
+
await this.selectResourceType('COMPONENT');
|
|
27
17
|
}
|
|
28
18
|
async clickResourceTab() {
|
|
29
|
-
await
|
|
30
|
-
timeout: 60000,
|
|
31
|
-
});
|
|
32
|
-
await this.selectResourceTypeTab('RESOURCE').click();
|
|
19
|
+
await this.selectResourceType('RESOURCE');
|
|
33
20
|
}
|
|
34
21
|
}
|
|
35
22
|
exports.OCIdentityAuthorizationsPage = OCIdentityAuthorizationsPage;
|