test: Add type delay while typing file-web-link

This commit is contained in:
Suraj Shetty 2020-04-25 14:24:34 +05:30
parent 0b6e1cb78e
commit 6ecd83a27d

View file

@ -50,7 +50,7 @@ context('FileUploader', () => {
open_upload_dialog();
cy.get_open_dialog().find('a:contains("web link")').click();
cy.get_open_dialog().find('.file-web-link input').type('https://github.com');
cy.get_open_dialog().find('.file-web-link input').type('https://github.com', {delay: 100});
cy.server();
cy.route('POST', '/api/method/upload_file').as('upload_file');
cy.get_open_dialog().find('.btn-primary').click();