@camunda/e2e-test-suite 0.0.315 → 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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IdentityPage = void 0;
4
+ const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
4
5
  class IdentityPage {
5
6
  page;
6
7
  identityBanner;
@@ -129,7 +130,15 @@ class IdentityPage {
129
130
  await this.assignedRolesTab.click();
130
131
  }
131
132
  async clickDemoUser() {
132
- await this.demoUser.click({ timeout: 180000 });
133
+ await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(this.page, this.demoUser, {
134
+ visibilityTimeout: 15000,
135
+ totalTimeout: 90000,
136
+ postAction: async () => {
137
+ await this.page.reload();
138
+ await this.clickUsersLink();
139
+ },
140
+ });
141
+ await this.demoUser.click();
133
142
  }
134
143
  async clickDeleteAccessButton(accessToDelete) {
135
144
  try {
@@ -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.page.getByTestId('credentials').click();
50
- await this.page.getByTestId('no-credentials-empty-action').click();
51
- await this.page.getByTestId('passwordField').fill(password);
52
- await this.page.getByTestId('passwordConfirmationField').fill(password);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.315",
3
+ "version": "0.0.317",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",