選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

47 行
1.1 KiB

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