* 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
16 lines
507 B
JavaScript
16 lines
507 B
JavaScript
context('Form', () => {
|
|
before(() => {
|
|
cy.login('Administrator', 'qwe');
|
|
cy.visit('/desk');
|
|
});
|
|
|
|
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();
|
|
cy.get('.page-title').should('contain', 'Not Saved');
|
|
cy.get('.primary-action').click();
|
|
cy.visit('/desk#List/ToDo');
|
|
cy.location('hash').should('eq', '#List/ToDo/List');
|
|
cy.get('.list-row').should('contain', 'this is a test todo');
|
|
});
|
|
});
|