test: Remove unnecessary website page visit

This commit is contained in:
Suraj Shetty 2020-04-25 14:55:12 +05:30
parent 6ecd83a27d
commit ba9b8a4060
2 changed files with 1 additions and 4 deletions

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', {delay: 100});
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();

View file

@ -6,9 +6,6 @@ context('Form', () => {
return frappe.call("frappe.tests.ui_test_helpers.create_contact_records");
});
});
beforeEach(() => {
cy.visit('/desk#workspace/Website');
});
it('create a new form', () => {
cy.visit('/desk#Form/ToDo/New ToDo 1');
cy.fill_field('description', 'this is a test todo', 'Text Editor').blur();