mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(editor): Add debounce to text parameter input (#19339)
This commit is contained in:
@@ -37,7 +37,8 @@ export const simpleWebhookCall = (options: SimpleWebhookCallOptions) => {
|
||||
.find('.parameter-input')
|
||||
.find('input')
|
||||
.clear()
|
||||
.type(webhookPath);
|
||||
.type(webhookPath)
|
||||
.wait(300);
|
||||
|
||||
if (authentication) {
|
||||
cy.getByTestId('parameter-input-authentication').click();
|
||||
@@ -46,7 +47,8 @@ export const simpleWebhookCall = (options: SimpleWebhookCallOptions) => {
|
||||
|
||||
if (responseCode) {
|
||||
cy.get('.param-options').click();
|
||||
getVisibleSelect().contains('Response Code').click();
|
||||
// wait for selector debounce
|
||||
getVisibleSelect().contains('Response Code').click().wait(300);
|
||||
cy.get('.parameter-item-wrapper > .parameter-input-list-wrapper').children().click();
|
||||
getVisibleSelect().contains('201').click();
|
||||
}
|
||||
|
||||
@@ -78,7 +78,8 @@ describe('n8n Form Trigger', () => {
|
||||
|
||||
//add optional submitted message
|
||||
cy.get('.param-options').click();
|
||||
getVisibleSelect().find('span').contains('Form Response').click();
|
||||
// wait for selector debounce
|
||||
getVisibleSelect().find('span').contains('Form Response').click().wait(300);
|
||||
cy.contains('span', 'Text to Show')
|
||||
.should('exist')
|
||||
.parent()
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
"scripts": {
|
||||
"typecheck": "tsc --noEmit",
|
||||
"cypress:install": "cypress install",
|
||||
"test:e2e:ui": "scripts/run-e2e.js ui",
|
||||
"test:e2e:dev": "scripts/run-e2e.js dev",
|
||||
"test:e2e:all": "scripts/run-e2e.js all",
|
||||
"test:flaky": "scripts/run-e2e.js debugFlaky",
|
||||
"test:e2e:ui": "node scripts/run-e2e.js ui",
|
||||
"test:e2e:dev": "node scripts/run-e2e.js dev",
|
||||
"test:e2e:all": "node scripts/run-e2e.js all",
|
||||
"test:flaky": "node scripts/run-e2e.js debugFlaky",
|
||||
"format": "biome format --write .",
|
||||
"format:check": "biome ci .",
|
||||
"lint": "eslint . --quiet",
|
||||
|
||||
@@ -74,7 +74,9 @@ export class CredentialsModal extends BasePage {
|
||||
.filter(':not([readonly])')
|
||||
.each(($el) => {
|
||||
cy.wrap($el).type('test');
|
||||
});
|
||||
})
|
||||
// wait for text input debounce
|
||||
.wait(300);
|
||||
saveCredential();
|
||||
if (closeModal) {
|
||||
this.getters.closeButton().click();
|
||||
|
||||
Reference in New Issue
Block a user