* test(UI): Add UI tests using cypress * test: Add test configuration for travis * fix: Lock redis version * fix: Refactor fill_field command * fix: Rename setup_wizard test to run first * test: Add setup for dashboard service * test: Add build matrix for ui test * test: Add name to each build matrix * test: Only include ui test for an extra build stage * fix: Exclude UI test with python 3.6 * test: Test order * test: Enable developer_mode * test(login): Check session user and not hash * test: Refactor assert * test: Refactor setup wizard test * test: Remove setup wizard test * test: Add blank seed database * test(form): Scroll to top before save * test: Fix form test * test: timeout * test: more wait * test: Remove specific selector * test: Remove wait, delay typing * test: Blur input after typing * test: Wait for form to get dirty * test: Add credentials for frappe org * test: Remove node install step * style: Fix linting issues * fix: List view filters - ToDo: Dont override frappe.route_options if it is already set * test: Dont reload page before test
52 lines
1.3 KiB
JavaScript
52 lines
1.3 KiB
JavaScript
context('Awesome Bar', () => {
|
|
before(() => {
|
|
cy.login('Administrator', 'qwe');
|
|
cy.visit('/desk');
|
|
});
|
|
|
|
beforeEach(() => {
|
|
cy.get('.navbar-home').click();
|
|
});
|
|
|
|
it('navigates to modules', () => {
|
|
cy.get('#navbar-search')
|
|
.type('modules{downarrow}{enter}', { delay: 100 });
|
|
|
|
cy.location('hash').should('eq', '#modules');
|
|
});
|
|
|
|
it('navigates to doctype list', () => {
|
|
cy.get('#navbar-search')
|
|
.type('todo{downarrow}{enter}', { delay: 100 });
|
|
|
|
cy.get('h1').should('contain', 'To Do');
|
|
|
|
cy.location('hash').should('eq', '#List/ToDo/List');
|
|
});
|
|
|
|
it('find text in doctype list', () => {
|
|
cy.get('#navbar-search')
|
|
.type('test in todo{downarrow}{enter}', { delay: 100 });
|
|
|
|
cy.get('h1').should('contain', 'To Do');
|
|
|
|
cy.get('.toggle-filter')
|
|
.should('have.length', 1)
|
|
.should('contain', 'ID like %test%');
|
|
});
|
|
|
|
it('navigates to new form', () => {
|
|
cy.get('#navbar-search')
|
|
.type('new blog post{downarrow}{enter}', { delay: 100 });
|
|
|
|
cy.get('.title-text:visible').should('have.text', 'New Blog Post 1');
|
|
});
|
|
|
|
it('calculates math expressions', () => {
|
|
cy.get('#navbar-search')
|
|
.type('55 + 32{downarrow}{enter}', { delay: 100 });
|
|
|
|
cy.get('.modal-title').should('contain', 'Result');
|
|
cy.get('.msgprint').should('contain', '55 + 32 = 87');
|
|
});
|
|
});
|