@camunda/e2e-test-suite 0.0.1078 → 0.0.1080

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.
@@ -244,13 +244,19 @@ class ModelerCreatePage {
244
244
  this.taskDefinitionPanel = page.locator('[data-group-id="group-taskDefinition"]');
245
245
  this.jobTypeInput = page.getByRole('textbox', { name: /job type/i });
246
246
  // Modeler renamed the third mode tab "Play" -> "Test" (camunda-hub
247
- // a90fd06). Accept either label; the "Test" branch is scoped to the modes
248
- // tablist because the details panel also renders a tab named "Test".
247
+ // a90fd06). Anchor on `mode-tab-test`, the hub-owned data-test that both
248
+ // action bars render (Carbon `ActionBar.tsx` and the design-system
249
+ // `ActionBarDs.tsx`) and that the rename left untouched. Keep the old
250
+ // label and the role-based tab as fallbacks; the "Test" branch stays
251
+ // scoped to the modes tablist because the details panel also renders a
252
+ // tab named "Test".
249
253
  this.playTab = page
250
- .getByRole('tab', { name: 'Play' })
254
+ .locator('[data-test="mode-tab-test"]')
255
+ .or(page.getByRole('tab', { name: 'Play' }))
251
256
  .or(page
252
257
  .getByRole('tablist', { name: 'List of modes' })
253
- .getByRole('tab', { name: 'Test', exact: true }));
258
+ .getByRole('tab', { name: 'Test', exact: true }))
259
+ .first();
254
260
  this.continueToPlayButton = page.getByRole('button', { name: 'Continue' });
255
261
  this.assignmentSection = page.locator('[data-group-id="group-assignmentDefinition"]');
256
262
  this.assigneeInput = page.getByRole('textbox', { name: 'assignee' });
@@ -1183,8 +1189,15 @@ class ModelerCreatePage {
1183
1189
  await this.page.evaluate(() => localStorage.setItem('play-testAnnouncementSeen', 'true'));
1184
1190
  }
1185
1191
  async switchToPlay() {
1192
+ // The mode strip is not necessarily on screen yet when this is called:
1193
+ // ensureStageCluster's detour comes back with `domcontentloaded`, which
1194
+ // fires long before the modeler action bar mounts, so the tab did not
1195
+ // exist within the 10s default action timeout and the click failed
1196
+ // outright. Wait for the tab explicitly instead of leaning on that
1197
+ // timeout, and only then seed localStorage and click.
1198
+ await this.playTab.waitFor({ state: 'visible', timeout: 120000 });
1186
1199
  await this.suppressTestModeAnnouncement();
1187
- await this.playTab.click();
1200
+ await this.playTab.click({ timeout: 30000 });
1188
1201
  }
1189
1202
  async completePlayConfiguration(clusterName) {
1190
1203
  // Play is a tab on the diagram page, not its own URL, so the stage-cluster
@@ -1202,10 +1215,17 @@ class ModelerCreatePage {
1202
1215
  // 1. Connect cluster → "Configure environment" modal → select cluster → Save
1203
1216
  // 2. Deploy process → wait for success banner
1204
1217
  // 3. Configure test case
1218
+ // The "Test Studio" rebrand gave this button the stable test id
1219
+ // `test-configuration-deploy-button`. Prefer it, and keep the
1220
+ // label-scoped locator as a fallback for older modeler builds that render
1221
+ // the button without a test id.
1205
1222
  const setupDeployButton = this.page
1223
+ .getByTestId('test-configuration-deploy-button')
1224
+ .or(this.page
1206
1225
  .getByText('Deploy process')
1207
1226
  .locator('..')
1208
- .getByRole('button', { name: 'Deploy' });
1227
+ .getByRole('button', { name: 'Deploy' }))
1228
+ .first();
1209
1229
  // Both attributes on this button have been renamed by camunda-hub, in
1210
1230
  // separate commits: a90fd06 changed the label from "Configure scenario" to
1211
1231
  // "Configure test case", and b3958a1649 (#27259, 2026-08-07) then changed
@@ -160,7 +160,8 @@ _8_7_1.test.describe('Connectors User Flow Tests', () => {
160
160
  await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateProcessInstancePage, operateProcessInstancePage.completedIcon, 'Completed icon', 60000);
161
161
  });
162
162
  });
163
- (0, _8_7_1.test)('Connector Secrets User Flow - GCP', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, clusterPage, clusterSecretsPage, }) => {
163
+ // Skipped due to bug #8500: https://github.com/camunda/connectors/issues/8500
164
+ _8_7_1.test.skip('Connector Secrets User Flow - GCP', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, clusterPage, clusterSecretsPage, }) => {
164
165
  _8_7_1.test.slow();
165
166
  const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
166
167
  await _8_7_1.test.step('Navigate to Cluster Secrets', async () => {
@@ -212,7 +213,8 @@ _8_7_1.test.describe('Connectors User Flow Tests', () => {
212
213
  .getByText('"Message from Mock!"'), 'Connector response message', 60000);
213
214
  });
214
215
  });
215
- (0, _8_7_1.test)('Connector Secrets User Flow - AWS', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, clusterPage, clusterSecretsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
216
+ // Skipped due to bug #8500: https://github.com/camunda/connectors/issues/8500
217
+ _8_7_1.test.skip('Connector Secrets User Flow - AWS', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, clusterPage, clusterSecretsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
216
218
  _8_7_1.test.slow();
217
219
  const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
218
220
  await _8_7_1.test.step('Navigate to Cluster Secrets', async () => {
@@ -209,7 +209,8 @@ _8_8_1.test.describe('Connectors User Flow Tests @tasklistV2', () => {
209
209
  });
210
210
  });
211
211
  });
212
- (0, _8_8_1.test)('Connector Secrets User Flow - AWS', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
212
+ // Skipped due to bug #8500: https://github.com/camunda/connectors/issues/8500
213
+ _8_8_1.test.skip('Connector Secrets User Flow - AWS', async ({ page, modelerHomePage, appsPage, modelerCreatePage, connectorSettingsPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
213
214
  _8_8_1.test.slow();
214
215
  const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
215
216
  await _8_8_1.test.step('Navigate to Web Modeler', async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1078",
3
+ "version": "0.0.1080",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",