16 lines
485 B
JavaScript
16 lines
485 B
JavaScript
context('Form', () => {
|
|
before(() => {
|
|
cy.login();
|
|
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');
|
|
});
|
|
});
|