The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix e2e tests (#12783)
Baptiste Devessier8f0c9facf2c3
diff --git a/packages/twenty-e2e-testing/tests/workflow-run.spec.ts b/packages/twenty-e2e-testing/tests/workflow-run.spec.tsindex bb56abfcaed..43d7587d827 100644--- a/packages/twenty-e2e-testing/tests/workflow-run.spec.ts+++ b/packages/twenty-e2e-testing/tests/workflow-run.spec.ts@@ -8,14 +8,12 @@ test('The workflow run visualizer shows the executed draft version without the lawait workflowVisualizer.createInitialTrigger('manual');const manualTriggerAvailabilitySelect = page.getByRole('button', {- name: 'When record(s) are selected',+ name: 'When record is selected',});await manualTriggerAvailabilitySelect.click();- const alwaysAvailableOption = page.getByText(- 'When no record(s) are selected',- );+ const alwaysAvailableOption = page.getByText('When no record is selected');await alwaysAvailableOption.click();@@ -74,14 +72,12 @@ test('Workflow Runs with a pending form step can be opened in the side panel andawait workflowVisualizer.createInitialTrigger('manual');const manualTriggerAvailabilitySelect = page.getByRole('button', {- name: 'When record(s) are selected',+ name: 'When record is selected',});await manualTriggerAvailabilitySelect.click();- const alwaysAvailableOption = page.getByText(- 'When no record(s) are selected',- );+ const alwaysAvailableOption = page.getByText('When no record is selected');await alwaysAvailableOption.click();@@ -90,29 +86,23 @@ test('Workflow Runs with a pending form step can be opened in the side panel andconst { createdStepId: firstStepId } =await workflowVisualizer.createStep('form');+ const addFormFieldButton = page.getByText('Add Field', { exact: true });++ await addFormFieldButton.click();+await workflowVisualizer.closeSidePanel();const launchTestButton = page.getByLabel(workflowVisualizer.workflowName);await launchTestButton.click();- await workflowVisualizer.seeRunsButton.click();-const workflowRunName = `#1 - ${workflowVisualizer.workflowName}`;- const workflowRunNameCell = page.getByRole('cell', { name: workflowRunName });-- await expect(workflowRunNameCell).toBeVisible();-- await workflowVisualizer.setWorkflowsOpenInMode('side-panel');-- // 1. Exit the dropdown- await workflowRunNameCell.click();- // 2. Actually open the workflow run in the side panel- await workflowRunNameCell.click();-await expect(workflowVisualizer.stepHeaderInCommandMenu).toContainText('Form',+ {+ timeout: 30_000,+ },);await workflowVisualizer.goBackInCommandMenu.click();@@ -122,7 +112,9 @@ test('Workflow Runs with a pending form step can be opened in the side panel andawait expect(workflowRunNameInCommandMenu).toBeVisible();- await workflowVisualizer.triggerNode.click();+ await workflowVisualizer.commandMenu+ .locator(workflowVisualizer.triggerNode)+ .click();await expect(workflowVisualizer.stepHeaderInCommandMenu).toContainText('Launch manually',@@ -130,7 +122,9 @@ test('Workflow Runs with a pending form step can be opened in the side panel andawait workflowVisualizer.goBackInCommandMenu.click();- const formStep = workflowVisualizer.getStepNode(firstStepId);+ const formStep = workflowVisualizer.commandMenu.locator(+ workflowVisualizer.getStepNode(firstStepId),+ );await formStep.click();