@camunda/e2e-test-suite 0.0.296 → 0.0.297
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.
|
@@ -15,7 +15,6 @@ const UtilitiesPage_1 = require("../../pages/8.10/UtilitiesPage");
|
|
|
15
15
|
const deleteOrg_1 = require("../../utils/deleteOrg");
|
|
16
16
|
const sleep_1 = require("../../utils/sleep");
|
|
17
17
|
const mailSlurpClient_1 = require("../../utils/mailSlurpClient");
|
|
18
|
-
const resetSession_1 = require("../../utils/resetSession");
|
|
19
18
|
const users_1 = require("../../utils/users");
|
|
20
19
|
const testUser = (0, users_1.getTestUser)('eleventhUser');
|
|
21
20
|
_8_10_1.test.describe.configure({ mode: 'parallel' });
|
|
@@ -415,87 +414,6 @@ _8_10_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
415
414
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateProcessInstancePage, operateProcessInstancePage.completedIcon, 'Completed icon', 60000, false, 5);
|
|
416
415
|
});
|
|
417
416
|
});
|
|
418
|
-
(0, _8_10_1.test)('Public Start Form @tasklistV1', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, browser, taskDetailsPage, loginPage, taskPanelPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
419
|
-
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
420
|
-
const processName = 'User_Task_Process_With_Public_Form' + randomString;
|
|
421
|
-
const formName = 'Public form' + randomString;
|
|
422
|
-
await _8_10_1.test.step('Navigate to Web Modeler', async () => {
|
|
423
|
-
await (0, test_1.expect)(homePage.camundaComponentsButton).toBeVisible({
|
|
424
|
-
timeout: 120000,
|
|
425
|
-
});
|
|
426
|
-
await appsPage.clickCamundaApps();
|
|
427
|
-
await appsPage.clickModeler();
|
|
428
|
-
await (0, test_1.expect)(modelerHomePage.modelerPageBanner).toBeVisible({
|
|
429
|
-
timeout: 180000,
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
|
-
await _8_10_1.test.step('Open Cross Component Test Project', async () => {
|
|
433
|
-
await modelerHomePage.clickCrossComponentProjectFolder();
|
|
434
|
-
});
|
|
435
|
-
await _8_10_1.test.step('Create a Form with a Text Field', async () => {
|
|
436
|
-
await modelerHomePage.clickDiagramTypeDropdown();
|
|
437
|
-
await modelerHomePage.clickFormOption();
|
|
438
|
-
await modelerHomePage.enterFormName(formName);
|
|
439
|
-
await (0, sleep_1.sleep)(2000);
|
|
440
|
-
await formJsPage.dragAndDrop(formJsPage.textField, formJsPage.formEditor);
|
|
441
|
-
await formJsPage.clickGeneralPropertiesPanel();
|
|
442
|
-
await formJsPage.fillKeyInput('Public_Form_Text_Field');
|
|
443
|
-
await formJsPage.deployForm(clusterName);
|
|
444
|
-
});
|
|
445
|
-
await _8_10_1.test.step('Add A BPMN Template To The Project', async () => {
|
|
446
|
-
await modelerHomePage.clickProjectBreadcrumb();
|
|
447
|
-
await modelerHomePage.clickDiagramTypeDropdown();
|
|
448
|
-
await modelerHomePage.clickBpmnTemplateOption();
|
|
449
|
-
});
|
|
450
|
-
await _8_10_1.test.step('Create BPMN Diagram with a Public Start Form and Deploy the Process', async () => {
|
|
451
|
-
await modelerCreatePage.modelCamundaUserTaskDiagram(processName, processName);
|
|
452
|
-
await modelerCreatePage.linkFormToStartEvent(formName);
|
|
453
|
-
await modelerCreatePage.enablePublicAccessIfDisabled();
|
|
454
|
-
await modelerCreatePage.deployDiagram(clusterName);
|
|
455
|
-
await (0, sleep_1.sleep)(5000);
|
|
456
|
-
});
|
|
457
|
-
let publicFormLink;
|
|
458
|
-
await _8_10_1.test.step('Enable Public Access and Get Publication Link', async () => {
|
|
459
|
-
publicFormLink = await modelerCreatePage.getPublicationLink();
|
|
460
|
-
await (0, sleep_1.sleep)(1000);
|
|
461
|
-
});
|
|
462
|
-
await _8_10_1.test.step('Clear Cookies and Reset Session', async () => {
|
|
463
|
-
await (0, resetSession_1.resetSession)(browser, page);
|
|
464
|
-
});
|
|
465
|
-
await _8_10_1.test.step('Access Public Form After Session Reset and Submit the Form', async () => {
|
|
466
|
-
console.log('Navigating to public form:', publicFormLink);
|
|
467
|
-
await page.goto(publicFormLink);
|
|
468
|
-
await (0, test_1.expect)(taskDetailsPage.textInput).toBeVisible({
|
|
469
|
-
timeout: 30000,
|
|
470
|
-
});
|
|
471
|
-
await taskDetailsPage.fillTextInput('Public Form Test Value');
|
|
472
|
-
await taskDetailsPage.clickSubmitButton();
|
|
473
|
-
await (0, test_1.expect)(page.getByRole('heading', { name: 'Success!' })).toBeVisible({
|
|
474
|
-
timeout: 30000,
|
|
475
|
-
});
|
|
476
|
-
});
|
|
477
|
-
await _8_10_1.test.step('Login to Tasklist and Check User Task Has the Correct Input Values and Can Be Completed', async () => {
|
|
478
|
-
await (0, UtilitiesPage_1.loginWithRetry)(page, loginPage, testUser, 5000);
|
|
479
|
-
await appsPage.clickCamundaApps();
|
|
480
|
-
await appsPage.clickTasklist(clusterName);
|
|
481
|
-
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(page, taskPanelPage.taskListPageBanner, 'Tasklist banner');
|
|
482
|
-
await taskPanelPage.openTask(processName);
|
|
483
|
-
await (0, test_1.expect)(page
|
|
484
|
-
.getByRole('row')
|
|
485
|
-
.filter({ hasText: 'Public_Form_Text_Field' })
|
|
486
|
-
.getByText('"Public Form Test Value"')).toBeVisible({ timeout: 30000 });
|
|
487
|
-
await taskDetailsPage.clickAssignToMeButton();
|
|
488
|
-
await taskDetailsPage.clickCompleteTaskButton();
|
|
489
|
-
});
|
|
490
|
-
await _8_10_1.test.step('Assert Process Instance is Completed in Operate', async () => {
|
|
491
|
-
await appsPage.clickCamundaApps();
|
|
492
|
-
await appsPage.clickOperate(clusterName);
|
|
493
|
-
await operateHomePage.clickProcessesTab();
|
|
494
|
-
await operateProcessesPage.clickProcessCompletedCheckbox();
|
|
495
|
-
await operateProcessesPage.clickProcessInstanceLink(processName);
|
|
496
|
-
await operateProcessInstancePage.assertProcessCompleteStatusWithRetry(40000);
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
417
|
(0, _8_10_1.test)('Conditional Events - Deploy, verify in Operate and verify process in Optimize dashboard @tasklistV2', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, }) => {
|
|
500
418
|
_8_10_1.test.slow();
|
|
501
419
|
const bpmnFileName = 'Conditional_Events_All.bpmn';
|
|
@@ -415,7 +415,8 @@ _8_9_1.test.describe('Web Modeler User Flow Tests', () => {
|
|
|
415
415
|
await (0, UtilitiesPage_1.assertLocatorVisibleWithRetry)(operateProcessInstancePage, operateProcessInstancePage.completedIcon, 'Completed icon', 60000, false, 5);
|
|
416
416
|
});
|
|
417
417
|
});
|
|
418
|
-
|
|
418
|
+
//Skipped due to bug 22577: https://github.com/camunda/camunda-hub/issues/22577
|
|
419
|
+
_8_9_1.test.skip('Public Start Form @tasklistV1', async ({ page, homePage, modelerHomePage, appsPage, modelerCreatePage, formJsPage, browser, taskDetailsPage, loginPage, taskPanelPage, operateHomePage, operateProcessesPage, operateProcessInstancePage, }) => {
|
|
419
420
|
const randomString = await (0, _setup_1.generateRandomStringAsync)(3);
|
|
420
421
|
const processName = 'User_Task_Process_With_Public_Form' + randomString;
|
|
421
422
|
const formName = 'Public form' + randomString;
|