From ec2c65f0a5986aa6f2583566f3b3188dc2c809d4 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 28 Apr 2022 14:27:46 +0530 Subject: [PATCH] fix(test): control_dynamic_link.js --- cypress/integration/control_dynamic_link.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/control_dynamic_link.js b/cypress/integration/control_dynamic_link.js index cc1eb0b695..68490547da 100644 --- a/cypress/integration/control_dynamic_link.js +++ b/cypress/integration/control_dynamic_link.js @@ -62,8 +62,8 @@ context('Dynamic Link', () => { "label": "Document ID", "fieldname": "doc_id", "fieldtype": "Dynamic Link", - "get_options": () => { - return "User"; + "get_options": () => { + return "User"; }, "in_list_view": 1, }] @@ -118,11 +118,11 @@ context('Dynamic Link', () => { cy.get_field('doc_type').clear(); //Entering System Settings in the Doctype field - cy.fill_field('doc_type', 'System Settings', 'Link', {delay: 500}); + cy.fill_field('doc_type', 'System Settings{enter}', 'Link', {delay: 500}); cy.get_field('doc_id').click(); //Checking if the system throws error cy.get('.modal-title').should('have.text', 'Error'); cy.get('.msgprint').should('have.text', 'System Settings is not a valid DocType for Dynamic Link'); }); -}); \ No newline at end of file +});