@camunda/e2e-test-suite 0.0.518 → 0.0.520

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.
@@ -25,6 +25,7 @@ declare class OCTenantPage {
25
25
  readonly assignRoleSubButton: Locator;
26
26
  readonly cancelButton: Locator;
27
27
  readonly gotItButton: Locator;
28
+ readonly filterTableSearchbox: Locator;
28
29
  readonly row: (name: string) => Locator;
29
30
  constructor(page: Page);
30
31
  clickCreateTenantMainButton(): Promise<void>;
@@ -46,6 +47,7 @@ declare class OCTenantPage {
46
47
  assertTenantCreated(): Promise<void>;
47
48
  clickCancelButton(): Promise<void>;
48
49
  clickGotItButton(): Promise<void>;
50
+ filterTable(tenantName: string): Promise<void>;
49
51
  clickTenant(tenantName: string): Promise<void>;
50
52
  assignUserToTenant(user: string): Promise<void>;
51
53
  removeUserFromTenant(tenantName: string): Promise<void>;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OCTenantPage = void 0;
4
4
  const test_1 = require("@playwright/test");
5
- const findLocatorInPaginatedList_1 = require("../../utils/findLocatorInPaginatedList");
6
5
  const expectTextWithPagination_1 = require("../../utils/assertionHelpers/expectTextWithPagination");
7
6
  class OCTenantPage {
8
7
  page;
@@ -30,6 +29,7 @@ class OCTenantPage {
30
29
  assignRoleSubButton;
31
30
  cancelButton;
32
31
  gotItButton;
32
+ filterTableSearchbox;
33
33
  row;
34
34
  constructor(page) {
35
35
  this.page = page;
@@ -79,6 +79,9 @@ class OCTenantPage {
79
79
  .getByRole('dialog')
80
80
  .getByRole('button', { name: 'Cancel' });
81
81
  this.gotItButton = page.getByRole('button', { name: 'Got it' });
82
+ this.filterTableSearchbox = page.getByRole('searchbox', {
83
+ name: 'Filter table',
84
+ });
82
85
  this.row = (name) => this.page.getByRole('row').filter({ hasText: name }).first();
83
86
  }
84
87
  async clickCreateTenantMainButton() {
@@ -171,17 +174,21 @@ class OCTenantPage {
171
174
  async clickGotItButton() {
172
175
  await this.gotItButton.click({ timeout: 30000 });
173
176
  }
177
+ async filterTable(tenantName) {
178
+ await this.filterTableSearchbox.click({ timeout: 60000 });
179
+ await this.filterTableSearchbox.fill(tenantName);
180
+ await this.filterTableSearchbox.press('Enter');
181
+ }
174
182
  async clickTenant(tenantName) {
175
183
  const maxRetries = 10;
176
184
  for (let attempt = 1; attempt <= maxRetries; attempt++) {
177
185
  try {
178
186
  await this.page.reload();
179
187
  await this.page.waitForLoadState('networkidle');
188
+ await this.filterTable(tenantName);
180
189
  const tenant = this.page.getByText(tenantName).first();
181
- await (0, findLocatorInPaginatedList_1.findLocatorInPaginatedList)(this.page, tenant);
182
- await tenant.click({
183
- timeout: 30000,
184
- });
190
+ await (0, test_1.expect)(tenant).toBeVisible({ timeout: 30000 });
191
+ await tenant.click({ timeout: 30000 });
185
192
  return;
186
193
  }
187
194
  catch (error) {
@@ -449,9 +449,8 @@ async function modelAndRunConnectorsDocHandlingDiagram(modelerCreatePage, modele
449
449
  await connectorMarketplacePage.clickSearchForConnectorTextbox();
450
450
  await connectorMarketplacePage.fillSearchForConnectorTextbox('REST Connector');
451
451
  await connectorMarketplacePage.downloadConnectorToProject();
452
- await (0, sleep_1.sleep)(5000);
453
452
  await page.reload();
454
- await (0, sleep_1.sleep)(5000);
453
+ await page.waitForLoadState('networkidle');
455
454
  await modelerCreatePage.fillStartEventVariablesForDocHandling(zeebeUrl, zeebeClientId, zeebeClientSecret);
456
455
  await modelerCreatePage.setOAuthTokenEndpoint(page.locator('.djs-hit').first(), endpoint);
457
456
  await (0, sleep_1.sleep)(2000);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.518",
3
+ "version": "0.0.520",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",