Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

46 Zeilen
1.1 KiB

  1. context('Awesome Bar', () => {
  2. before(() => {
  3. cy.login('Administrator', 'qwe');
  4. cy.visit('/desk');
  5. });
  6. beforeEach(() => {
  7. cy.get('.navbar-home').click();
  8. });
  9. it('navigates to doctype list', () => {
  10. cy.get('#navbar-search')
  11. .type('todo{downarrow}{enter}', { delay: 100 });
  12. cy.get('h1').should('contain', 'To Do');
  13. cy.location('hash').should('eq', '#List/ToDo/List');
  14. });
  15. it('find text in doctype list', () => {
  16. cy.get('#navbar-search')
  17. .type('test in todo{downarrow}{enter}', { delay: 100 });
  18. cy.get('h1').should('contain', 'To Do');
  19. cy.get('.toggle-filter')
  20. .should('have.length', 1)
  21. .should('contain', 'ID like %test%');
  22. });
  23. it('navigates to new form', () => {
  24. cy.get('#navbar-search')
  25. .type('new blog post{downarrow}{enter}', { delay: 100 });
  26. cy.get('.title-text:visible').should('have.text', 'New Blog Post 1');
  27. });
  28. it('calculates math expressions', () => {
  29. cy.get('#navbar-search')
  30. .type('55 + 32{downarrow}{enter}', { delay: 100 });
  31. cy.get('.modal-title').should('contain', 'Result');
  32. cy.get('.msgprint').should('contain', '55 + 32 = 87');
  33. });
  34. });