@camunda/e2e-test-suite 0.0.1614 → 0.0.1615

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.
@@ -98,11 +98,16 @@ class KeycloakAdminPage {
98
98
  .locator('label.pf-v5-c-switch[for="temporaryPassword"]')
99
99
  .click();
100
100
  await this.page.getByTestId('confirm').click();
101
+ // The second confirm fires PUT .../users/<id>/reset-password. Returning
102
+ // right after the click let the caller navigate away (goToIdentity) and
103
+ // abort that request, leaving the user with no password, so every later
104
+ // login as that user failed with "Please enter a valid username or
105
+ // password". Wait for Keycloak to acknowledge the reset instead.
106
+ const resetPasswordResponse = this.page.waitForResponse((response) => response.url().includes('/reset-password') &&
107
+ response.request().method() === 'PUT', { timeout: 30000 });
101
108
  await this.page.getByTestId('confirm').click();
102
- // if the browser is firefox, delay for 500 ms
103
- if (await this.page.evaluate(() => navigator.userAgent.includes('Firefox'))) {
104
- await (0, sleep_1.sleep)(500);
105
- }
109
+ const response = await resetPasswordResponse;
110
+ (0, test_1.expect)(response.ok(), `Keycloak reset-password returned HTTP ${response.status()}`).toBe(true);
106
111
  }
107
112
  }
108
113
  exports.KeycloakAdminPage = KeycloakAdminPage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1614",
3
+ "version": "0.0.1615",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",