@camunda/e2e-test-suite 0.0.509 → 0.0.511

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.
@@ -74,9 +74,6 @@ class ClusterDetailsPage {
74
74
  .locator('label')
75
75
  .filter({ hasText: /^Administration API - Resource: Secrets$/ });
76
76
  this.createButton = page.getByRole('button', { name: 'Create', exact: true });
77
- this.closeModalButton = page
78
- .getByRole('dialog', { name: 'Client credentials', exact: true })
79
- .getByLabel('Close');
80
77
  this.createClientButton = page.getByRole('button', {
81
78
  name: 'Create new Client',
82
79
  });
@@ -91,10 +88,12 @@ class ClusterDetailsPage {
91
88
  this.createClientCredentialsDialog = page.getByRole('dialog', {
92
89
  name: 'Create new client credentials',
93
90
  });
94
- this.clientCredentialsDialog = page.getByRole('dialog', {
95
- name: 'Client credentials',
96
- exact: true,
91
+ // Use a content-based locator so the test stays robust if the dialog
92
+ // title is ever renamed in the Console UI.
93
+ this.clientCredentialsDialog = page.getByRole('dialog').filter({
94
+ has: page.getByText('The Client Secret will not be shown again.'),
97
95
  });
96
+ this.closeModalButton = this.clientCredentialsDialog.getByLabel('Close');
98
97
  this.clustersLink = page
99
98
  .getByRole('banner')
100
99
  .getByRole('link', { name: 'Clusters' });
@@ -429,7 +428,7 @@ class ClusterDetailsPage {
429
428
  await this.checkSecretsCheckbox();
430
429
  await this.clickCreateButton();
431
430
  await (0, test_1.expect)(this.clientCredentialsDialog).toBeVisible({
432
- timeout: 20000,
431
+ timeout: 60000,
433
432
  });
434
433
  await (0, test_1.expect)(this.clientCredentialsDialog
435
434
  .getByText('The Client Secret will not be shown again.')
@@ -64,6 +64,14 @@ class LoginPage {
64
64
  }
65
65
  async loginWithTestUser(credentials = {}) {
66
66
  const { username = process.env.C8_USERNAME_TEST, password = process.env.C8_PASSWORD_TEST, } = credentials;
67
+ // Navigate to app root to trigger auth redirect. The Console app (at
68
+ // console.* hostnames) embeds a hidden invite-user email input also labeled
69
+ // "Email address" that would otherwise satisfy the locator below before the
70
+ // auth0 redirect has had a chance to complete.
71
+ await this.page.goto('/');
72
+ await this.page
73
+ .waitForURL((url) => !url.hostname.includes('console'), { timeout: 60000 })
74
+ .catch(() => { });
67
75
  await (0, test_1.expect)(this.usernameInput.locator).toBeVisible({ timeout: 120000 });
68
76
  await this.fillUsername(username);
69
77
  await this.clickContinueButton();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.509",
3
+ "version": "0.0.511",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",