@camunda/e2e-test-suite 0.0.1055 → 0.0.1056

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.
@@ -13,6 +13,7 @@ declare class ClusterSecretsPage {
13
13
  readonly fromFileButton: Locator;
14
14
  readonly bulkImportTextArea: Locator;
15
15
  readonly dialogImportButton: Locator;
16
+ readonly dialogCancelButton: Locator;
16
17
  readonly secretsSearchBox: Locator;
17
18
  readonly clusterBanner: Locator;
18
19
  readonly clusterLink: (name: string) => Locator;
@@ -37,6 +38,7 @@ declare class ClusterSecretsPage {
37
38
  name: string;
38
39
  value: string;
39
40
  }[]): Promise<void>;
41
+ closeImportDialog(): Promise<void>;
40
42
  clickImportButton(): Promise<void>;
41
43
  bulkImportSecrets(secrets: {
42
44
  name: string;
@@ -18,6 +18,7 @@ class ClusterSecretsPage {
18
18
  fromFileButton;
19
19
  bulkImportTextArea;
20
20
  dialogImportButton;
21
+ dialogCancelButton;
21
22
  secretsSearchBox;
22
23
  clusterBanner;
23
24
  clusterLink;
@@ -51,6 +52,9 @@ class ClusterSecretsPage {
51
52
  this.dialogImportButton = this.page
52
53
  .getByRole('dialog')
53
54
  .getByRole('button', { name: 'Import', exact: true });
55
+ this.dialogCancelButton = this.page
56
+ .getByRole('dialog')
57
+ .getByRole('button', { name: 'Cancel', exact: true });
54
58
  this.secretsSearchBox = page.getByRole('searchbox', { name: 'Filter table' });
55
59
  this.clusterBanner = this.page
56
60
  .getByRole('banner')
@@ -190,6 +194,12 @@ class ClusterSecretsPage {
190
194
  }
191
195
  }
192
196
  }
197
+ async closeImportDialog() {
198
+ if (await this.dialogCancelButton.isVisible().catch(() => false)) {
199
+ await this.dialogCancelButton.click({ timeout: 30000 });
200
+ }
201
+ await (0, test_1.expect)(this.dialog).not.toBeVisible({ timeout: 30000 });
202
+ }
193
203
  async clickImportButton() {
194
204
  await (0, test_1.expect)(this.importButton).toBeVisible({ timeout: 30000 });
195
205
  await this.importButton.click();
@@ -211,9 +221,22 @@ class ClusterSecretsPage {
211
221
  await this.bulkImportTextArea.click();
212
222
  await this.bulkImportTextArea.fill(mapped);
213
223
  await this.dialogImportButton.click();
214
- await (0, test_1.expect)(this.dialog).not.toBeVisible({
215
- timeout: 60000,
216
- });
224
+ // Console answers 409 for every key that already exists and keeps the
225
+ // "Import secrets" modal open, so a set that is only partially new -- or a
226
+ // Playwright retry of a test whose first attempt already imported it --
227
+ // leaves the dialog up forever. Close it and let assertSecretsOrCreate
228
+ // below do the verification: it checks every secret individually and
229
+ // creates the ones that are genuinely missing, so nothing is skipped.
230
+ try {
231
+ await (0, test_1.expect)(this.dialog).not.toBeVisible({
232
+ timeout: 60000,
233
+ });
234
+ }
235
+ catch (error) {
236
+ console.log('Import dialog still open after importing; some secrets already ' +
237
+ `exist on this cluster. Closing it and verifying individually: ${error}`);
238
+ await this.closeImportDialog();
239
+ }
217
240
  await (0, test_1.expect)(this.createNewSecretButton).toBeVisible({
218
241
  timeout: 60000,
219
242
  });
@@ -117,7 +117,8 @@ _8_9_1.test.describe('Agentic Orchestation User Flows', () => {
117
117
  });
118
118
  _8_9_1.test.describe('AI Agent sub process - provider user tests flow', () => {
119
119
  for (const params of aiAgentSubProcessTestCases) {
120
- (0, _8_9_1.test)(`AI agent sub process with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
120
+ // Skipped due to bug #8490: https://github.com/camunda/connectors/issues/8490
121
+ _8_9_1.test.skip(`AI agent sub process with tools provides feedback to user - ${params.provider}`, async ({ appsPage, operateHomePage, operateProcessInstancePage, operateProcessesPage, taskPanelPage, taskDetailsPage, }) => {
121
122
  _8_9_1.test.slow();
122
123
  const processKey = await (0, apiHelpers_1.deployProcess)(params.bpmnPath, authToken);
123
124
  if (processKey == null) {
@@ -69,7 +69,8 @@ _8_9_1.test.describe('IDP User Flow Tests', () => {
69
69
  });
70
70
  _8_9_1.test.describe('Unstructured Extraction', () => {
71
71
  for (const params of unstructuredTestCases) {
72
- (0, _8_9_1.test)(`${params.provider} unstructured (${params.model}) - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
72
+ // Skipped due to bug #8500: https://github.com/camunda/connectors/issues/8500
73
+ _8_9_1.test.skip(`${params.provider} unstructured (${params.model}) - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
73
74
  _8_9_1.test.slow();
74
75
  idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} unstructured` + ' - IDP_Application_Name');
75
76
  idpDocumentExtractionTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} unstructured` + ' - IDP_Extraction_Template_Name');
@@ -144,7 +145,8 @@ _8_9_1.test.describe('IDP User Flow Tests', () => {
144
145
  });
145
146
  _8_9_1.test.describe('Structured Extraction', () => {
146
147
  for (const params of structuredTestCases) {
147
- (0, _8_9_1.test)(`${params.provider} structured - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
148
+ // Skipped due to bug #8500: https://github.com/camunda/connectors/issues/8500
149
+ _8_9_1.test.skip(`${params.provider} structured - User creates an idp application with a document extraction template`, async ({ page, idpCreatePage, modelerHomePage, homePage, appsPage, clusterPage, clusterSecretsPage, }) => {
148
150
  _8_9_1.test.slow();
149
151
  idpApplicationName = await (0, randomName_1.randomNameAgregator)(`${params.provider} structured` + ' - IDP_Application_Name');
150
152
  idpDocumentExtractionTemplateName = await (0, randomName_1.randomNameAgregator)(`${params.provider} structured` + ' - IDP_Extraction_Template_Name');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/e2e-test-suite",
3
- "version": "0.0.1055",
3
+ "version": "0.0.1056",
4
4
  "description": "End-to-end test helpers for Camunda 8",
5
5
  "repository": {
6
6
  "type": "git",