mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
ci: Strengthen Playwright test resilience (#28687)
This commit is contained in:
parent
d608889e88
commit
82ee4a9fce
4 changed files with 8 additions and 6 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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' });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ({
|
||||
|
|
|
|||
Loading…
Reference in a new issue