fix: Flaky E2E test for the RLC (no-changelog) (#20366)

This commit is contained in:
RomanDavydchuk 2025-10-03 18:53:57 +03:00 committed by GitHub
parent e23bcfd63a
commit 25033dfaed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -1013,7 +1013,7 @@ export class NodeDetailsViewPage extends BasePage {
await this.activateParameterExpressionEditor(fieldName);
const editor = this.getInlineExpressionEditorInput(fieldName);
await editor.click();
await this.page.keyboard.type(invalidExpression ?? '{{ invalid_expression');
await this.page.keyboard.type(invalidExpression ?? '{{ =()');
}
/**

View File

@ -107,8 +107,7 @@ test.describe('Resource Locator', () => {
});
// unlike RMC and remote options, RLC does not support loadOptionDependsOn
// NODE-3720
test.skip('should retrieve list options when other params throw errors', async ({ n8n }) => {
test('should retrieve list options when other params throw errors', async ({ n8n }) => {
await n8n.canvas.addNode(E2E_TEST_NODE_NAME, { closeNDV: false, action: 'Resource Locator' });
await n8n.ndv.getResourceLocatorInput('rlc').click();
@ -122,6 +121,9 @@ test.describe('Resource Locator', () => {
await n8n.ndv.getInputPanel().click(); // remove focus from input, hide expression preview
// wait for the expression to be evaluated and show the error
await expect(n8n.ndv.getParameterInputHint()).toContainText('ERROR');
await n8n.ndv.getResourceLocatorInput('rlc').click();
await expect(n8n.page.getByTestId('rlc-item').first()).toBeVisible();