test: Migrate 2929 test to Playwright (#18425)

This commit is contained in:
shortstacked
2025-08-18 09:05:38 +01:00
committed by GitHub
parent 3788268b15
commit 20bbc7f80b
4 changed files with 24 additions and 17 deletions

View File

@@ -0,0 +1,20 @@
import { test, expect } from '../../fixtures/base';
import type { TestRequirements } from '../../Types';
const requirements: TestRequirements = {
workflow: {
'Switch_node_with_null_connection.json': 'Switch Node with Null Connection',
},
};
test.describe('ADO-2929 can load Switch nodes', () => {
test('can load workflows with Switch nodes with null at connection index @auth:owner', async ({
n8n,
setupRequirements,
}) => {
await setupRequirements(requirements);
await expect(n8n.canvas.getCanvasNodes()).toHaveCount(3);
await n8n.canvas.deleteNodeByName('Switch');
await expect(n8n.canvas.getCanvasNodes()).toHaveCount(2);
});
});