@camunda/e2e-test-suite 0.0.386 → 0.0.388

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.
@@ -73,15 +73,15 @@ class HomePage {
73
73
  }
74
74
  async clickSkipCustomization() {
75
75
  try {
76
- await (0, test_1.expect)(this.buttonSkipCustomization).toBeVisible({
76
+ await this.buttonSkipCustomization.waitFor({
77
+ state: 'visible',
77
78
  timeout: 30000,
78
79
  });
79
80
  await this.buttonSkipCustomization.click({ timeout: 60000 });
80
81
  await this.closeInformationDialog();
81
- return;
82
82
  }
83
- catch (error) {
84
- console.error(error);
83
+ catch {
84
+ // Skip customization button not present – this is expected for returning users
85
85
  }
86
86
  }
87
87
  }
@@ -54,7 +54,8 @@ class LoginPage {
54
54
  }
55
55
  async login(credentials = {}) {
56
56
  const { username = process.env.C8_USERNAME, password = process.env.C8_PASSWORD, } = credentials;
57
- await (0, test_1.expect)(this.usernameInput.locator).toBeVisible({ timeout: 200000 });
57
+ await (0, test_1.expect)(this.loginMessage).toBeVisible({ timeout: 120000 });
58
+ await (0, test_1.expect)(this.usernameInput.locator).toBeVisible({ timeout: 30000 });
58
59
  await this.fillUsername(username);
59
60
  await this.clickContinueButton();
60
61
  await this.fillPassword(password);
@@ -13,6 +13,11 @@ async function loginWithRetry(page, loginPage, testUser, timeout, maxRetries = 3
13
13
  try {
14
14
  await page.goto('/');
15
15
  await (0, sleep_1.sleep)(timeout);
16
+ // Confirm we reached the login page before filling credentials.
17
+ // Without this check the locator for 'Email address' can match a hidden
18
+ // invite-user input on the Console page when the logout redirect has not
19
+ // yet completed, causing a 200 s wait before failing.
20
+ await (0, test_1.expect)(loginPage.loginMessage).toBeVisible({ timeout: 60000 });
16
21
  await loginPage.login(testUser);
17
22
  return;
18
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.386",
3
+ "version": "0.0.388",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",