Some checks failed
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
37 lines
1.3 KiB
TypeScript
37 lines
1.3 KiB
TypeScript
import { test, expect } from '../../../fixtures/base';
|
|
|
|
test.describe('Node Creator Workflow Building', {
|
|
annotation: [
|
|
{ type: 'owner', description: 'Adore' },
|
|
],
|
|
}, () => {
|
|
test.beforeEach(async ({ n8n }) => {
|
|
await n8n.start.fromBlankCanvas();
|
|
});
|
|
|
|
test('should append manual trigger when adding action node from canvas add button', async ({
|
|
n8n,
|
|
}) => {
|
|
await n8n.canvas.clickCanvasPlusButton();
|
|
await n8n.canvas.nodeCreator.searchFor('n8n');
|
|
await n8n.canvas.nodeCreator.selectItem('n8n');
|
|
await n8n.canvas.nodeCreator.selectCategoryItem('Actions');
|
|
await n8n.canvas.nodeCreator.selectItem('Create a credential');
|
|
await n8n.page.keyboard.press('Escape');
|
|
|
|
await expect(n8n.canvas.getCanvasNodes()).toHaveCount(2);
|
|
await expect(n8n.canvas.nodeConnections()).toHaveCount(1);
|
|
});
|
|
|
|
test('should append manual trigger when adding action node from plus button', async ({ n8n }) => {
|
|
await n8n.canvas.clickCanvasPlusButton();
|
|
await n8n.canvas.nodeCreator.searchFor('n8n');
|
|
await n8n.canvas.nodeCreator.selectItem('n8n');
|
|
await n8n.canvas.nodeCreator.selectCategoryItem('Actions');
|
|
await n8n.canvas.nodeCreator.selectItem('Create a credential');
|
|
await n8n.page.keyboard.press('Escape');
|
|
|
|
await expect(n8n.canvas.getCanvasNodes()).toHaveCount(2);
|
|
});
|
|
});
|