@camunda/e2e-test-suite 0.0.850 → 0.0.851

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.
@@ -42,6 +42,7 @@ declare class ClusterDetailsPage {
42
42
  readonly clientRow: (name: string) => Locator;
43
43
  readonly clientRowDeleteButton: (name: string) => Locator;
44
44
  readonly mcpSupportToggle: Locator;
45
+ readonly mcpRestartConfirmButton: Locator;
45
46
  readonly mcpTab: Locator;
46
47
  readonly mcpTextarea: Locator;
47
48
  readonly reviewUpdateButton: Locator;
@@ -47,6 +47,7 @@ class ClusterDetailsPage {
47
47
  clientRow;
48
48
  clientRowDeleteButton;
49
49
  mcpSupportToggle;
50
+ mcpRestartConfirmButton;
50
51
  mcpTab;
51
52
  mcpTextarea;
52
53
  reviewUpdateButton;
@@ -150,6 +151,9 @@ class ClusterDetailsPage {
150
151
  this.mcpSupportToggle = page.getByRole('switch', {
151
152
  name: /Enable MCP Support/i,
152
153
  });
154
+ this.mcpRestartConfirmButton = this.dialog.getByRole('button', {
155
+ name: 'Continue',
156
+ });
153
157
  this.mcpTab = page.getByRole('tab', { name: 'MCP' });
154
158
  this.mcpTextarea = page.getByLabel('MCP', { exact: true }).locator('pre');
155
159
  this.reviewUpdateButton = page.getByRole('button', { name: 'Review Update' });
@@ -652,8 +656,17 @@ class ClusterDetailsPage {
652
656
  // Only click if not already enabled to avoid disabling on reruns
653
657
  if (!(await this.mcpSupportToggle.isChecked())) {
654
658
  await this.mcpSupportToggle.click({ force: true });
659
+ // Enabling MCP Support restarts the cluster, so the product now shows a
660
+ // "Restart required" confirmation dialog. The toggle stays disabled until
661
+ // the restart is confirmed via its "Continue" button.
662
+ if (await this.dialog.isVisible({ timeout: 15000 })) {
663
+ await (0, test_1.expect)(this.mcpRestartConfirmButton).toBeVisible({
664
+ timeout: 30000,
665
+ });
666
+ await this.mcpRestartConfirmButton.click({ timeout: 30000 });
667
+ }
655
668
  }
656
- await (0, test_1.expect)(this.mcpSupportToggle).toBeChecked();
669
+ await (0, test_1.expect)(this.mcpSupportToggle).toBeChecked({ timeout: 60000 });
657
670
  }
658
671
  async clickMCPTab() {
659
672
  await (0, test_1.expect)(this.mcpTab).toBeVisible({ timeout: 60000 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.850",
3
+ "version": "0.0.851",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",