fix(test): control_dynamic_link.js

This commit is contained in:
Rushabh Mehta 2022-04-28 14:27:46 +05:30
parent 926ceb3b25
commit ec2c65f0a5

View file

@ -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');
});
});
});