ci: Strengthen Playwright test resilience (#28687)

This commit is contained in:
Declan Carroll 2026-04-20 14:06:41 +02:00 committed by GitHub
parent d608889e88
commit 82ee4a9fce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 6 deletions

View file

@ -560,7 +560,9 @@ export class CanvasPage extends BasePage {
async executeNode(nodeName: string): Promise<void> {
await this.nodeByName(nodeName).hover();
await this.nodeExecuteButton(nodeName).click();
const button = this.nodeExecuteButton(nodeName);
await expect(button).toBeVisible();
await button.click();
}
async selectAll(): Promise<void> {

View file

@ -24,6 +24,6 @@ export class InstanceAiSidebar {
}
getDeleteMenuItem(): Locator {
return this.root.page().getByText('Delete', { exact: true }).first();
return this.root.page().getByRole('menuitem').filter({ hasText: 'Delete' });
}
}

View file

@ -265,7 +265,7 @@ test.describe(
);
});
test('maps expressions to updated fields correctly @fixme', async ({ n8n }) => {
test.fixme('maps expressions to updated fields correctly', async ({ n8n }) => {
await n8n.start.fromImportedWorkflow('schedule-trigger-with-set-nodes.json');
await n8n.canvas.openNode('Set');

View file

@ -179,10 +179,10 @@ test.describe(
await expressionInput.click();
await n8n.ndv.clearExpressionEditor();
await n8n.ndv.typeInExpressionEditor(`{{ $('${NODES.HTTP_REQUEST}').item`);
await n8n.page.keyboard.press('Escape');
const expectedOutput = '[Object: {"json": {"http": 123}, "pairedItem": {"item": 0}}]';
await expect(n8n.ndv.getParameterInputHintWithText(expectedOutput)).toBeVisible();
const hint = n8n.ndv.getParameterInputHint();
await expect(hint).toContainText('"http": 123');
await expect(hint).toContainText('pairedItem');
});
test('should use pin data in manual webhook executions', async ({