@camunda/e2e-test-suite 0.0.406 → 0.0.408
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.
|
@@ -2,6 +2,7 @@ import { Page, Locator } from '@playwright/test';
|
|
|
2
2
|
declare class KeycloakAdminPage {
|
|
3
3
|
private page;
|
|
4
4
|
readonly keycloakBanner: Locator;
|
|
5
|
+
readonly addUserButton: Locator;
|
|
5
6
|
constructor(page: Page);
|
|
6
7
|
toBeVisible(): Promise<void>;
|
|
7
8
|
switchToCamundaPlatform(): Promise<void>;
|
|
@@ -6,9 +6,11 @@ const sleep_1 = require("../../utils/sleep");
|
|
|
6
6
|
class KeycloakAdminPage {
|
|
7
7
|
page;
|
|
8
8
|
keycloakBanner;
|
|
9
|
+
addUserButton;
|
|
9
10
|
constructor(page) {
|
|
10
11
|
this.page = page;
|
|
11
12
|
this.keycloakBanner = page.locator('#kc-main-content-page-container');
|
|
13
|
+
this.addUserButton = page.getByTestId('add-user');
|
|
12
14
|
}
|
|
13
15
|
async toBeVisible() {
|
|
14
16
|
await (0, test_1.expect)(this.keycloakBanner).toBeVisible({ timeout: 10000 });
|
|
@@ -34,7 +36,8 @@ class KeycloakAdminPage {
|
|
|
34
36
|
await this.page.click('a[id="nav-item-users"]');
|
|
35
37
|
}
|
|
36
38
|
async clickAddUser() {
|
|
37
|
-
await this.
|
|
39
|
+
await (0, test_1.expect)(this.addUserButton).toBeVisible({ timeout: 30000 });
|
|
40
|
+
await this.addUserButton.click();
|
|
38
41
|
}
|
|
39
42
|
async fillUser(username) {
|
|
40
43
|
await this.page.getByTestId('username').fill(username);
|
|
@@ -615,8 +615,7 @@ class ModelerCreatePage {
|
|
|
615
615
|
try {
|
|
616
616
|
if (retries === 0) {
|
|
617
617
|
// First attempt
|
|
618
|
-
await this.restConnectorOption.
|
|
619
|
-
await this.restConnectorOption.click({ timeout: 60000 });
|
|
618
|
+
await this.restConnectorOption.click({ timeout: 90000 });
|
|
620
619
|
}
|
|
621
620
|
else if (retries === 1 || retries === 2) {
|
|
622
621
|
// Second or third attempt
|