@camunda/e2e-test-suite 0.0.316 → 0.0.317
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,10 @@ import { Page, Locator } from '@playwright/test';
|
|
|
2
2
|
declare class KeycloakAdminPage {
|
|
3
3
|
private page;
|
|
4
4
|
readonly keycloakBanner: Locator;
|
|
5
|
+
readonly credentialsTab: Locator;
|
|
6
|
+
readonly noCredentialsEmptyAction: Locator;
|
|
7
|
+
readonly passwordField: Locator;
|
|
8
|
+
readonly passwordConfirmationField: Locator;
|
|
5
9
|
constructor(page: Page);
|
|
6
10
|
toBeVisible(): Promise<void>;
|
|
7
11
|
switchToCamundaPlatform(): Promise<void>;
|
|
@@ -6,9 +6,17 @@ const sleep_1 = require("../../utils/sleep");
|
|
|
6
6
|
class KeycloakAdminPage {
|
|
7
7
|
page;
|
|
8
8
|
keycloakBanner;
|
|
9
|
+
credentialsTab;
|
|
10
|
+
noCredentialsEmptyAction;
|
|
11
|
+
passwordField;
|
|
12
|
+
passwordConfirmationField;
|
|
9
13
|
constructor(page) {
|
|
10
14
|
this.page = page;
|
|
11
15
|
this.keycloakBanner = page.locator('#kc-main-content-page-container');
|
|
16
|
+
this.credentialsTab = page.getByTestId('credentials');
|
|
17
|
+
this.noCredentialsEmptyAction = page.getByTestId('no-credentials-empty-action');
|
|
18
|
+
this.passwordField = page.getByTestId('passwordField');
|
|
19
|
+
this.passwordConfirmationField = page.getByTestId('passwordConfirmationField');
|
|
12
20
|
}
|
|
13
21
|
async toBeVisible() {
|
|
14
22
|
await (0, test_1.expect)(this.keycloakBanner).toBeVisible({ timeout: 10000 });
|
|
@@ -46,10 +54,14 @@ class KeycloakAdminPage {
|
|
|
46
54
|
await this.page.getByTestId('user-creation-save').click();
|
|
47
55
|
}
|
|
48
56
|
async fillPassword(password) {
|
|
49
|
-
await this.
|
|
50
|
-
await this.
|
|
51
|
-
await this.
|
|
52
|
-
await this.
|
|
57
|
+
await (0, test_1.expect)(this.credentialsTab).toBeVisible();
|
|
58
|
+
await this.credentialsTab.click();
|
|
59
|
+
await (0, test_1.expect)(this.noCredentialsEmptyAction).toBeVisible();
|
|
60
|
+
await this.noCredentialsEmptyAction.click();
|
|
61
|
+
await (0, test_1.expect)(this.passwordField).toBeVisible();
|
|
62
|
+
await this.passwordField.fill(password);
|
|
63
|
+
await (0, test_1.expect)(this.passwordConfirmationField).toBeVisible();
|
|
64
|
+
await this.passwordConfirmationField.fill(password);
|
|
53
65
|
}
|
|
54
66
|
async savePassword() {
|
|
55
67
|
await this.page
|
|
@@ -236,8 +236,8 @@ class PlayPage {
|
|
|
236
236
|
totalTimeout: 90000,
|
|
237
237
|
visibilityTimeout: 20000,
|
|
238
238
|
postAction: async () => {
|
|
239
|
-
if (await this.retryButton.isVisible()) {
|
|
240
|
-
await this.retryButton.click();
|
|
239
|
+
if (await this.retryButton.first().isVisible()) {
|
|
240
|
+
await this.retryButton.first().click();
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resetSessionAll = exports.resetSession = void 0;
|
|
4
|
+
const sleep_1 = require("./sleep");
|
|
4
5
|
async function resetSession(browser, page) {
|
|
5
6
|
const context = browser.contexts()[0];
|
|
6
7
|
await context.clearCookies();
|
|
8
|
+
await (0, sleep_1.sleep)(2000);
|
|
7
9
|
await page.reload();
|
|
8
10
|
await page.goto('/');
|
|
9
11
|
}
|