@camunda/e2e-test-suite 0.0.1550 → 0.0.1552

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.
@@ -166,6 +166,7 @@ declare class ModelerCreatePage {
166
166
  private recoverModelerSession;
167
167
  private searchAndClickRestConnector;
168
168
  clickRestConnectorOption(recoverSession?: () => Promise<void>): Promise<void>;
169
+ assertRestConnectorTemplateApplied(): Promise<void>;
169
170
  clickMarketPlaceButton(): Promise<void>;
170
171
  completeDeploymentEndpointConfiguration(): Promise<void>;
171
172
  completePlayConfiguration(): Promise<void>;
@@ -1138,6 +1138,22 @@ class ModelerCreatePage {
1138
1138
  }
1139
1139
  throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
1140
1140
  }
1141
+ // A version-gated template can be clicked in the change-element popup without
1142
+ // being applied: the entry stays listed, the click reports success, and the
1143
+ // only later symptom is a 60s timeout on the Authentication tab the template
1144
+ // contributes (connectors #7716). Assert the binding where it happens so that
1145
+ // failure names itself. 'Send REST Request' is the template's current name --
1146
+ // see searchAndClickRestConnector for the rename history.
1147
+ async assertRestConnectorTemplateApplied() {
1148
+ const details = this.page.getByRole('region', { name: 'Details panel' });
1149
+ await (0, test_1.expect)(details
1150
+ .locator('[data-test="properties-panel-header-container"]')
1151
+ .getByText('Send REST Request', { exact: true })).toBeVisible({ timeout: 60000 });
1152
+ await (0, test_1.expect)(details.getByText('Applied', { exact: true })).toBeVisible({
1153
+ timeout: 30000,
1154
+ });
1155
+ await (0, test_1.expect)(this.templateNotFoundTag).toBeHidden({ timeout: 10000 });
1156
+ }
1141
1157
  async clickMarketPlaceButton() {
1142
1158
  const maxRetries = 3;
1143
1159
  for (let retries = 0; retries < maxRetries; retries++) {
@@ -248,6 +248,7 @@ async function modelRestConnector(modelerCreatePage, connectorSettingsPage, conn
248
248
  await modelerCreatePage.clickChangeTypeButton();
249
249
  await modelerCreatePage.clickRestConnectorOption(recoverSession);
250
250
  }
251
+ await modelerCreatePage.assertRestConnectorTemplateApplied();
251
252
  await connectorSettingsPage.clickAuthenticationTab();
252
253
  await connectorSettingsPage.clickHTTPEndpointTab();
253
254
  if (auth == 'bearer') {
@@ -166,6 +166,7 @@ declare class ModelerCreatePage {
166
166
  private recoverModelerSession;
167
167
  private searchAndClickRestConnector;
168
168
  clickRestConnectorOption(recoverSession?: () => Promise<void>): Promise<void>;
169
+ assertRestConnectorTemplateApplied(): Promise<void>;
169
170
  clickMarketPlaceButton(): Promise<void>;
170
171
  completeDeploymentEndpointConfiguration(): Promise<void>;
171
172
  completePlayConfiguration(): Promise<void>;
@@ -1125,6 +1125,22 @@ class ModelerCreatePage {
1125
1125
  }
1126
1126
  throw new Error(`Failed to click the button after ${maxRetries} attempts.`);
1127
1127
  }
1128
+ // A version-gated template can be clicked in the change-element popup without
1129
+ // being applied: the entry stays listed, the click reports success, and the
1130
+ // only later symptom is a 60s timeout on the Authentication tab the template
1131
+ // contributes (connectors #7716). Assert the binding where it happens so that
1132
+ // failure names itself. 'Send REST Request' is the template's current name --
1133
+ // see searchAndClickRestConnector for the rename history.
1134
+ async assertRestConnectorTemplateApplied() {
1135
+ const details = this.page.getByRole('region', { name: 'Details panel' });
1136
+ await (0, test_1.expect)(details
1137
+ .locator('[data-test="properties-panel-header-container"]')
1138
+ .getByText('Send REST Request', { exact: true })).toBeVisible({ timeout: 60000 });
1139
+ await (0, test_1.expect)(details.getByText('Applied', { exact: true })).toBeVisible({
1140
+ timeout: 30000,
1141
+ });
1142
+ await (0, test_1.expect)(this.templateNotFoundTag).toBeHidden({ timeout: 10000 });
1143
+ }
1128
1144
  async clickMarketPlaceButton() {
1129
1145
  const maxRetries = 3;
1130
1146
  for (let retries = 0; retries < maxRetries; retries++) {
@@ -245,6 +245,7 @@ async function modelRestConnector(modelerCreatePage, connectorSettingsPage, conn
245
245
  await modelerCreatePage.clickChangeTypeButton();
246
246
  await modelerCreatePage.clickRestConnectorOption(recoverSession);
247
247
  }
248
+ await modelerCreatePage.assertRestConnectorTemplateApplied();
248
249
  await connectorSettingsPage.clickAuthenticationTab();
249
250
  await connectorSettingsPage.clickHTTPEndpointTab();
250
251
  if (auth == 'bearer') {
@@ -42,8 +42,7 @@ test.describe('Connectors User Flow Tests @tasklistV2', () => {
42
42
  await (0, _setup_1.captureScreenshot)(page, testInfo);
43
43
  await (0, _setup_1.captureFailureVideo)(page, testInfo);
44
44
  });
45
- // Skipped due to bug #7716: https://github.com/camunda/connectors/issues/7716
46
- test.skip('REST Connector No Auth User Flow', async ({ page, operateHomePage, modelerHomePage, operateProcessInstancePage, modelerCreatePage, connectorSettingsPage, operateProcessesPage, connectorMarketplacePage, navigationPage, }) => {
45
+ test('REST Connector No Auth User Flow', async ({ page, operateHomePage, modelerHomePage, operateProcessInstancePage, modelerCreatePage, connectorSettingsPage, operateProcessesPage, connectorMarketplacePage, navigationPage, }) => {
47
46
  test.slow();
48
47
  const processName = 'REST_Connector_No_Auth_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
49
48
  await test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -177,8 +176,7 @@ test.describe('Connectors User Flow Tests @tasklistV2', () => {
177
176
  (0, test_1.expect)(result).toBe('completed');
178
177
  });
179
178
  });
180
- // Skipped due to bug #7716: https://github.com/camunda/connectors/issues/7716
181
- test.skip('Connector Secrets User Flow', async ({ operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, connectorSettingsPage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, }) => {
179
+ test('Connector Secrets User Flow', async ({ operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, connectorSettingsPage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, }) => {
182
180
  test.slow();
183
181
  const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
184
182
  await test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -139,8 +139,7 @@ SM_8_10_1.test.describe.parallel('Smoke Tests', () => {
139
139
  });
140
140
  console.log(`[${testInfo.title}] Test end: timeout = ${testInfo.timeout}`);
141
141
  });
142
- // skipping the test to unblock AG until issue is investigated https://github.com/camunda/connectors/actions/runs/24979855526/job/73141398616?pr=7041
143
- SM_8_10_1.test.skip('Most Common REST Connector User Flow @tasklistV2', async ({ context, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessesPage, operateProcessInstancePage, connectorMarketplacePage, }, testInfo) => {
142
+ (0, SM_8_10_1.test)('Most Common REST Connector User Flow @tasklistV2', async ({ context, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessesPage, operateProcessInstancePage, connectorMarketplacePage, }, testInfo) => {
144
143
  console.log(`[${testInfo.title}] Test start: timeout = ${testInfo.timeout}`);
145
144
  const processName = 'REST_Connector_Basic_Auth_Process' +
146
145
  (await (0, _setup_1.generateRandomStringAsync)(3));
@@ -42,8 +42,7 @@ test.describe('Connectors User Flow Tests @tasklistV2', () => {
42
42
  await (0, _setup_1.captureScreenshot)(page, testInfo);
43
43
  await (0, _setup_1.captureFailureVideo)(page, testInfo);
44
44
  });
45
- // Skipped due to bug #7716: https://github.com/camunda/connectors/issues/7716
46
- test.skip('REST Connector No Auth User Flow', async ({ page, operateHomePage, modelerHomePage, operateProcessInstancePage, modelerCreatePage, connectorSettingsPage, operateProcessesPage, connectorMarketplacePage, navigationPage, }) => {
45
+ test('REST Connector No Auth User Flow', async ({ page, operateHomePage, modelerHomePage, operateProcessInstancePage, modelerCreatePage, connectorSettingsPage, operateProcessesPage, connectorMarketplacePage, navigationPage, }) => {
47
46
  test.slow();
48
47
  const processName = 'REST_Connector_No_Auth_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
49
48
  await test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -177,8 +176,7 @@ test.describe('Connectors User Flow Tests @tasklistV2', () => {
177
176
  (0, test_1.expect)(result).toBe('completed');
178
177
  });
179
178
  });
180
- // Skipped due to bug #7716: https://github.com/camunda/connectors/issues/7716
181
- test.skip('Connector Secrets User Flow', async ({ operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, connectorSettingsPage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, }) => {
179
+ test('Connector Secrets User Flow', async ({ operateHomePage, modelerHomePage, navigationPage, modelerCreatePage, connectorSettingsPage, operateProcessInstancePage, operateProcessesPage, connectorMarketplacePage, }) => {
182
180
  test.slow();
183
181
  const processName = 'REST_Connector_Process' + (await (0, _setup_1.generateRandomStringAsync)(3));
184
182
  await test.step('Open Cross Component Test Project and Create a BPMN Diagram Template', async () => {
@@ -134,8 +134,7 @@ SM_8_11_1.test.describe.parallel('Smoke Tests', () => {
134
134
  });
135
135
  console.log(`[${testInfo.title}] Test end: timeout = ${testInfo.timeout}`);
136
136
  });
137
- // skipping the test to unblock AG until issue is investigated https://github.com/camunda/connectors/actions/runs/24979855526/job/73141398616?pr=7041
138
- SM_8_11_1.test.skip('Most Common REST Connector User Flow @tasklistV2', async ({ context, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessesPage, operateProcessInstancePage, connectorMarketplacePage, }, testInfo) => {
137
+ (0, SM_8_11_1.test)('Most Common REST Connector User Flow @tasklistV2', async ({ context, operateHomePage, modelerHomePage, modelerCreatePage, connectorSettingsPage, navigationPage, operateProcessesPage, operateProcessInstancePage, connectorMarketplacePage, }, testInfo) => {
139
138
  console.log(`[${testInfo.title}] Test start: timeout = ${testInfo.timeout}`);
140
139
  const processName = 'REST_Connector_Basic_Auth_Process' +
141
140
  (await (0, _setup_1.generateRandomStringAsync)(3));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1550",
3
+ "version": "0.0.1552",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",