You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 line
485 B

  1. context('Form', () => {
  2. before(() => {
  3. cy.login();
  4. cy.visit('/desk');
  5. });
  6. it('create a new form', () => {
  7. cy.visit('/desk#Form/ToDo/New ToDo 1');
  8. cy.fill_field('description', 'this is a test todo', 'Text Editor').blur();
  9. cy.get('.page-title').should('contain', 'Not Saved');
  10. cy.get('.primary-action').click();
  11. cy.visit('/desk#List/ToDo');
  12. cy.location('hash').should('eq', '#List/ToDo/List');
  13. cy.get('.list-row').should('contain', 'this is a test todo');
  14. });
  15. });