@camunda/e2e-test-suite 0.0.637 → 0.0.639
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.
|
@@ -90,8 +90,16 @@ class Authorization {
|
|
|
90
90
|
await this.createAuthorizationOwnerOption(authorization.ownerId).click({
|
|
91
91
|
timeout: 30000,
|
|
92
92
|
});
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
// The Resource type is pre-selected and disabled when the dialog is
|
|
94
|
+
// opened from a specific resource-type tab. Only pick it from the dropdown
|
|
95
|
+
// when the field is still enabled (editable).
|
|
96
|
+
await (0, test_1.expect)(this.createAuthorizationResourceTypeDropdown).toBeVisible({
|
|
97
|
+
timeout: 30000,
|
|
98
|
+
});
|
|
99
|
+
if (await this.createAuthorizationResourceTypeDropdown.isEnabled()) {
|
|
100
|
+
await this.createAuthorizationResourceTypeDropdown.click();
|
|
101
|
+
await this.createAuthorizationResourceTypeOption(authorization.resourceType).click({ timeout: 30000 });
|
|
102
|
+
}
|
|
95
103
|
await this.createAuthorizationResourceIdField.fill(authorization.resourceId);
|
|
96
104
|
for (const permission of authorization.accessPermissions) {
|
|
97
105
|
await (0, sleep_1.sleep)(200);
|