fix(editor): Fix remote options fetching on every keystroke (#7320)

Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
Milorad FIlipović
2023-10-12 14:18:35 +02:00
committed by GitHub
parent 77039044eb
commit 367255ab2c
5 changed files with 20 additions and 10 deletions

View File

@@ -114,7 +114,7 @@ export class NDV extends BasePage {
typeIntoParameterInput: (
parameterName: string,
content: string,
opts?: { parseSpecialCharSequences: boolean },
opts?: { parseSpecialCharSequences: boolean, delay?: number },
) => {
this.getters.parameterInput(parameterName).type(content, opts);
},
@@ -199,10 +199,11 @@ export class NDV extends BasePage {
getVisiblePopper().find('li').last().click();
},
setInvalidExpression: (fieldName: string, invalidExpression?: string) => {
setInvalidExpression: ({ fieldName, invalidExpression, delay }: { fieldName: string, invalidExpression?: string, delay?: number }) => {
this.actions.typeIntoParameterInput(fieldName, '=');
this.actions.typeIntoParameterInput(fieldName, invalidExpression ?? "{{ $('unknown')", {
parseSpecialCharSequences: false,
delay,
});
this.actions.validateExpressionPreview(fieldName, `node doesn't exist`);
},