06_online_mobile_live.cy.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { setup } from '../../support/setup.js';
  2. import filterTests from '../../support/filterTests';
  3. setup();
  4. filterTests(['mobile'], () => {
  5. describe(`Live mobile tests`, () => {
  6. it('Can visit the page', () => {
  7. cy.visit('http://localhost:8080');
  8. });
  9. it('Mobile chat button should be visible', () => {
  10. cy.get('#mobile-chat-button').should('be.visible');
  11. });
  12. it('Click mobile chat button', () => {
  13. cy.get('#mobile-chat-button').click();
  14. });
  15. it('Mobile chat modal should be visible', () => {
  16. cy.get('.ant-modal').should('be.visible');
  17. });
  18. it('Chat container should be visible', () => {
  19. cy.get('#chat-container').should('be.visible');
  20. });
  21. it('Chat input should be visible', () => {
  22. cy.get('#chat-input').should('be.visible');
  23. });
  24. it('Chat user menu should be visible', () => {
  25. cy.get('#chat-modal-user-menu').should('be.visible');
  26. });
  27. it('Click on user menu', () => {
  28. cy.get('#chat-modal-user-menu').click();
  29. });
  30. it('Show change name modal', () => {
  31. cy.contains('Change name').click();
  32. });
  33. });
  34. });