test: Add navingation test case

This commit is contained in:
Suraj Shetty 2021-07-22 12:02:47 +05:30
parent 09ca4d5af3
commit 6f70dcf52d

View file

@ -0,0 +1,15 @@
context('Navigation', () => {
before(() => {
cy.login();
cy.visit('/app/website');
});
it('Navigate to route with hash in document name', () => {
cy.insert_doc('ToDo', {'__newname': 'ABC#123', 'description': 'Test this', 'ignore_duplicate': true});
cy.visit('/app/todo/ABC#123');
cy.title().should('eq', 'Test this - ABC#123');
cy.get_field('description', 'Text Editor').contains('Test this');
cy.go('back');
cy.title().should('eq', 'Website');
cy.remove_doc('ToDo', 'ABC#123');
});
});