test: Add navingation test case
This commit is contained in:
parent
09ca4d5af3
commit
6f70dcf52d
1 changed files with 15 additions and 0 deletions
15
cypress/integration/navigation.js
Normal file
15
cypress/integration/navigation.js
Normal 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');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue