@camunda/e2e-test-suite 0.0.677 → 0.0.679
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.
|
@@ -26,6 +26,7 @@ declare class Authorization {
|
|
|
26
26
|
resourceId: string;
|
|
27
27
|
accessPermissions: string[];
|
|
28
28
|
}): Promise<void>;
|
|
29
|
+
selectResourceTypeFromDialog(resourceType: string): Promise<void>;
|
|
29
30
|
deleteAuthorization(resourceId: string, resourceType: string): Promise<void>;
|
|
30
31
|
}
|
|
31
32
|
export { Authorization };
|
|
@@ -117,19 +117,7 @@ class Authorization {
|
|
|
117
117
|
.first();
|
|
118
118
|
await (0, test_1.expect)(ownerMenuItem).toBeVisible({ timeout: 60000 });
|
|
119
119
|
await ownerMenuItem.click({ timeout: 20000 });
|
|
120
|
-
|
|
121
|
-
// commit camunda/camunda 8c72d29 (2026-05-26, "fix: prefill and lock
|
|
122
|
-
// resource type in create authorization modal"). The modal now
|
|
123
|
-
// initializes `resourceType` to whatever tab the user opened the
|
|
124
|
-
// modal from (the test calls clickResourceTab/clickComponentTab/etc.
|
|
125
|
-
// before createAuthorization), and the Dropdown is rendered with a
|
|
126
|
-
// hardcoded `disabled` prop — see
|
|
127
|
-
// identity/client/src/pages/authorizations/modals/add-modal/AddModal.tsx
|
|
128
|
-
// line ~184. There is no test-side interaction that can enable it,
|
|
129
|
-
// and no interaction is needed: the form already has the right
|
|
130
|
-
// value. Skip the dropdown click entirely. (8.9 still uses the older
|
|
131
|
-
// unlocked Dropdown, which is why its same-shaped page object
|
|
132
|
-
// continues to pass.)
|
|
120
|
+
await this.selectResourceTypeFromDialog(authorization.resourceType);
|
|
133
121
|
await this.createAuthorizationResourceIdField.fill(authorization.resourceId);
|
|
134
122
|
for (const permission of authorization.accessPermissions) {
|
|
135
123
|
await this.createAuthorizationAccessPermission(permission).click({
|
|
@@ -148,6 +136,14 @@ class Authorization {
|
|
|
148
136
|
clickLocator: this.selectResourceTypeTab(authorization.resourceType),
|
|
149
137
|
});
|
|
150
138
|
}
|
|
139
|
+
async selectResourceTypeFromDialog(resourceType) {
|
|
140
|
+
const isDisabled = await this.createAuthorizationResourceTypeDropdown.isDisabled();
|
|
141
|
+
if (isDisabled) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
await this.createAuthorizationResourceTypeDropdown.click();
|
|
145
|
+
await this.createAuthorizationResourceTypeOption(resourceType).click();
|
|
146
|
+
}
|
|
151
147
|
async deleteAuthorization(resourceId, resourceType) {
|
|
152
148
|
const locator = this.deleteAuthorizationButton(resourceId);
|
|
153
149
|
await (0, expectLocatorWithPagination_1.expectLocatorWithPagination)(this.page, locator, {
|