@camunda/e2e-test-suite 0.0.198 → 0.0.199

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.
@@ -24,6 +24,7 @@ declare class OCTenantPage {
24
24
  readonly roleIdSearchBox: Locator;
25
25
  readonly assignRoleSubButton: Locator;
26
26
  readonly cancelButton: Locator;
27
+ readonly gotItButton: Locator;
27
28
  readonly row: (name: string) => Locator;
28
29
  constructor(page: Page);
29
30
  clickCreateTenantMainButton(): Promise<void>;
@@ -44,6 +45,7 @@ declare class OCTenantPage {
44
45
  createTenant(tenantName: string): Promise<void>;
45
46
  assertTenantCreated(): Promise<void>;
46
47
  clickCancelButton(): Promise<void>;
48
+ clickGotItButton(): Promise<void>;
47
49
  clickTenant(tenantName: string): Promise<void>;
48
50
  assignUserToTenant(user: string): Promise<void>;
49
51
  removeUserFromTenant(tenantName: string): Promise<void>;
@@ -30,6 +30,7 @@ class OCTenantPage {
30
30
  roleIdSearchBox;
31
31
  assignRoleSubButton;
32
32
  cancelButton;
33
+ gotItButton;
33
34
  row;
34
35
  constructor(page) {
35
36
  this.page = page;
@@ -78,6 +79,7 @@ class OCTenantPage {
78
79
  this.cancelButton = page
79
80
  .getByRole('dialog')
80
81
  .getByRole('button', { name: 'Cancel' });
82
+ this.gotItButton = page.getByRole('button', { name: 'Got it' });
81
83
  this.row = (name) => this.page.getByRole('row').filter({ hasText: name }).first();
82
84
  }
83
85
  async clickCreateTenantMainButton() {
@@ -151,22 +153,26 @@ class OCTenantPage {
151
153
  }
152
154
  async assertTenantCreated() {
153
155
  try {
154
- await (0, test_1.expect)(this.page.getByText('Tenant created')).toBeVisible({
156
+ await (0, test_1.expect)(this.page.getByText('successfully created')).toBeVisible({
155
157
  timeout: 8000,
156
158
  });
159
+ await this.clickGotItButton();
157
160
  }
158
161
  catch (error) {
159
162
  if (await this.page.getByText('ALREADY_EXISTS').first().isVisible()) {
160
163
  await this.clickCancelButton();
161
164
  }
162
165
  else {
163
- throw new Error('Assigning user to tenant failed' + error);
166
+ throw new Error('Creating tenant failed' + error);
164
167
  }
165
168
  }
166
169
  }
167
170
  async clickCancelButton() {
168
171
  await this.cancelButton.click({ timeout: 30000 });
169
172
  }
173
+ async clickGotItButton() {
174
+ await this.gotItButton.click({ timeout: 30000 });
175
+ }
170
176
  async clickTenant(tenantName) {
171
177
  const maxRetries = 10;
172
178
  for (let attempt = 1; attempt <= maxRetries; attempt++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.198",
3
+ "version": "0.0.199",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",