@camunda/e2e-test-suite 0.0.581 → 0.0.582

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.
@@ -29,7 +29,6 @@ declare class ModelerCreatePage {
29
29
  readonly cancelButton: Locator;
30
30
  readonly restConnectorOption: Locator;
31
31
  readonly marketPlaceButton: Locator;
32
- private readonly changeTypeSearchInput;
33
32
  readonly clientIdTextbox: Locator;
34
33
  readonly clientSecretTextbox: Locator;
35
34
  readonly rememberCredentialsCheckbox: Locator;
@@ -34,7 +34,6 @@ class ModelerCreatePage {
34
34
  cancelButton;
35
35
  restConnectorOption;
36
36
  marketPlaceButton;
37
- changeTypeSearchInput;
38
37
  clientIdTextbox;
39
38
  clientSecretTextbox;
40
39
  rememberCredentialsCheckbox;
@@ -149,13 +148,6 @@ class ModelerCreatePage {
149
148
  name: 'REST Outbound Connector',
150
149
  });
151
150
  this.marketPlaceButton = page.getByTitle('Browse Marketplace for more Connectors');
152
- // Search input inside the Change element panel — used to filter the connector list
153
- this.changeTypeSearchInput = page
154
- .locator('div')
155
- .filter({ hasText: /^Change element/ })
156
- .locator('input')
157
- .or(page.locator('[data-testid="search-field"] input'))
158
- .first();
159
151
  this.clientIdTextbox = page.getByLabel('Client ID');
160
152
  this.clientSecretTextbox = page.getByLabel('Client secret');
161
153
  this.rememberCredentialsCheckbox = page.getByText('Remember credentials');
@@ -609,15 +601,6 @@ class ModelerCreatePage {
609
601
  await this.cancelButton.click();
610
602
  }
611
603
  async searchAndClickRestConnector() {
612
- // Fill the Change element search box with 'REST' to surface the connector
613
- // regardless of scroll position. Wrapped in try/catch so a missing or
614
- // unfocusable search box doesn't abort the attempt.
615
- try {
616
- await this.changeTypeSearchInput.fill('REST', { timeout: 5000 });
617
- }
618
- catch {
619
- // Search box unavailable — connector may still be visible without filtering
620
- }
621
604
  await (0, test_1.expect)(this.restConnectorOption).toBeVisible({ timeout: 90000 });
622
605
  await this.restConnectorOption.click({ timeout: 90000 });
623
606
  }
@@ -49,7 +49,18 @@ class OperateProcessesPage {
49
49
  async checkCheckbox(checkbox) {
50
50
  await checkbox.waitFor({ state: 'attached', timeout: constants_1._1_SECOND_IN_MS * 10 });
51
51
  if (!(await checkbox.isChecked())) {
52
- await checkbox.check({ force: true, timeout: constants_1._1_SECOND_IN_MS * 30 });
52
+ // Carbon Design System checkboxes use a hidden input + label pattern.
53
+ // Clicking the label triggers the React onChange event; .check({force})
54
+ // does not fire synthetic events on hidden inputs.
55
+ const id = await checkbox.getAttribute('id');
56
+ if (id) {
57
+ await this.page
58
+ .locator(`label[for="${id}"]`)
59
+ .click({ timeout: constants_1._1_SECOND_IN_MS * 30 });
60
+ }
61
+ else {
62
+ await checkbox.check({ force: true, timeout: constants_1._1_SECOND_IN_MS * 30 });
63
+ }
53
64
  await (0, test_1.expect)(checkbox).toBeChecked({
54
65
  checked: true,
55
66
  timeout: constants_1._1_SECOND_IN_MS * 30,
@@ -59,7 +70,15 @@ class OperateProcessesPage {
59
70
  async uncheckCheckbox(checkbox) {
60
71
  await checkbox.waitFor({ state: 'attached', timeout: constants_1._1_SECOND_IN_MS * 10 });
61
72
  if (await checkbox.isChecked()) {
62
- await checkbox.uncheck({ force: true, timeout: constants_1._1_SECOND_IN_MS * 30 });
73
+ const id = await checkbox.getAttribute('id');
74
+ if (id) {
75
+ await this.page
76
+ .locator(`label[for="${id}"]`)
77
+ .click({ timeout: constants_1._1_SECOND_IN_MS * 30 });
78
+ }
79
+ else {
80
+ await checkbox.uncheck({ force: true, timeout: constants_1._1_SECOND_IN_MS * 30 });
81
+ }
63
82
  await (0, test_1.expect)(checkbox).toBeChecked({
64
83
  checked: false,
65
84
  timeout: constants_1._1_SECOND_IN_MS * 30,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.581",
3
+ "version": "0.0.582",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",