Fix e2e tests (#10289)
- Remove the demo test as I don't think it provides much value - Re-run a test that was discarded because it failed due to a bug; modified the test so the bug doesn't make the test fail - Fixed all workflow tests
This commit is contained in:
committed by
GitHub
parent
fb42046033
commit
ade13826c2
@ -23,10 +23,13 @@ test('Create workflow', async ({ page }) => {
|
||||
return requestBody.operationName === 'CreateOneWorkflow';
|
||||
}),
|
||||
|
||||
await createWorkflowButton.click(),
|
||||
createWorkflowButton.click(),
|
||||
]);
|
||||
|
||||
const nameInput = page.getByRole('textbox');
|
||||
const recordName = page.getByTestId('top-bar-title').getByTestId('tooltip');
|
||||
await recordName.click();
|
||||
|
||||
const nameInput = page.getByTestId('top-bar-title').getByRole('textbox');
|
||||
await nameInput.fill(NEW_WORKFLOW_NAME);
|
||||
|
||||
const workflowDiagramContainer = page.locator('.react-flow__renderer');
|
||||
@ -36,7 +39,9 @@ test('Create workflow', async ({ page }) => {
|
||||
const newWorkflowId = body.data.createWorkflow.id;
|
||||
|
||||
try {
|
||||
const workflowName = page.getByRole('button', { name: NEW_WORKFLOW_NAME });
|
||||
const workflowName = page
|
||||
.getByTestId('top-bar-title')
|
||||
.getByText(NEW_WORKFLOW_NAME);
|
||||
|
||||
await expect(workflowName).toBeVisible();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user