@camunda/e2e-test-suite 0.0.658 → 0.0.660

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.
@@ -23,7 +23,7 @@ class OptimizeCollectionsPage {
23
23
  this.modalCloseButton = page.getByText('Close', { exact: true });
24
24
  this.processReport = page.getByText('Process Report').first();
25
25
  this.collectionsLink = page.getByRole('link', { name: 'Collections' });
26
- this.reportAuthor = page.getByRole('cell', { name: 'Demo User' });
26
+ this.reportAuthor = page.getByRole('cell', { name: 'Demo User' }).first();
27
27
  }
28
28
  async clickCreateNewButton() {
29
29
  if (await this.modalCloseButton.isVisible({ timeout: 2000 })) {
@@ -608,9 +608,12 @@ class ModelerCreatePage {
608
608
  // slice until the list is filtered. Type into the popup search box (the
609
609
  // same `.djs-popup-search input` selector the bpmn-js/hub e2e tests use)
610
610
  // so the REST Outbound Connector entry is rendered before asserting on it.
611
- if (await this.changeElementSearchInput.isVisible()) {
612
- await this.changeElementSearchInput.fill('REST Outbound');
613
- }
611
+ // Wait for the search input to render before filling: a bare isVisible()
612
+ // check races the popup re-render on retries and silently skips the fill,
613
+ // leaving the list unfiltered so the off-screen connector entry never
614
+ // becomes visible and the assertion below times out.
615
+ await (0, test_1.expect)(this.changeElementSearchInput).toBeVisible({ timeout: 30000 });
616
+ await this.changeElementSearchInput.fill('REST Outbound');
614
617
  await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
615
618
  await this.restConnectorOption.click({ timeout: 90000 });
616
619
  }
@@ -62,6 +62,7 @@ if (process.env.IS_MIGRATION === 'true') {
62
62
  await SM_8_10_1.test.step('View Report in Optimize', async () => {
63
63
  await navigationPage.goToOptimize();
64
64
  await optimizeHomePage.clickCollectionsLink();
65
+ await optimizeReportPage.waitUntilLocatorIsVisible(optimizeCollectionsPage.reportAuthor, page);
65
66
  await (0, test_1.expect)(optimizeCollectionsPage.reportAuthor).toBeVisible({
66
67
  timeout: 60000,
67
68
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.658",
3
+ "version": "0.0.660",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",