content_workspace_dashboard.js 4.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. describe('content :: workspace > dashbord', function () {
  2. before(function () {
  3. //login
  4. cy.visit('/login')
  5. cy.get('input[type=email]').type('admin@admin.admin')
  6. cy.get('input[type=password]').type('admin@admin.admin')
  7. cy.get('form').find('button').get('.connection__form__btnsubmit').click()
  8. cy.url().should('include', '/workspaces/1/dashboard')
  9. })
  10. it ('part of dashbord', function () {
  11. cy.get('.dashboard.pageWrapperGeneric').should('be.visible')
  12. cy.get('.dashboard__header.pageTitleGeneric').should('be.visible')
  13. cy.get('.dashboard .pageContentGeneric').should('be.visible')
  14. cy.get('.pageContentGeneric .dashboard__calltoaction').should('be.visible')
  15. cy.get('.dashboard__workspaceInfo .activity').should('be.visible')
  16. cy.get('.dashboard__workspaceInfo .memberlist').should('be.visible')
  17. cy.get('.pageContentGeneric .moreinfo').should('be.visible')
  18. })
  19. it ('header', function() {
  20. cy.get('.pageTitleGeneric .dashboard__header__title').should('be.visible')
  21. cy.get('.pageTitleGeneric .dashboard__header__advancedmode').should('be.visible')
  22. cy.get('.pageTitleGeneric .dashboard__header__advancedmode .btn.btn-primary').should('have.attr', 'type', 'button').should('be.visible')
  23. })
  24. it ('workspace-wrapper', function() {
  25. cy.get('.dashboard__workspace-wrapper .dashboard__workspace').should('be.visible')
  26. cy.get('.pageContentGeneric .dashboard__workspace__title').should('be.visible')
  27. cy.get('.pageContentGeneric .dashboard__workspace__detail').should('be.visible')
  28. cy.get('.dashboard__workspace-wrapper .userstatus').should('be.visible')
  29. cy.get('.userstatus .userstatus__role__msg').should('be.visible')
  30. cy.get('.userstatus .userstatus__role__definition').should('be.visible')
  31. cy.get('.userstatus .userstatus__notification__text').should('be.visible')
  32. cy.get('.userstatus .userstatus__notification__btn').should('be.visible')
  33. })
  34. it ('calltoaction', function() {
  35. cy.get(':nth-child(1).dashboard__calltoaction__button').should('be.visible')
  36. cy.get(':nth-child(1) .dashboard__calltoaction__button__text__icon').should('be.visible')
  37. cy.get(':nth-child(1) .dashboard__calltoaction__button__text__title').should('be.visible')
  38. cy.get(':nth-child(2).dashboard__calltoaction__button').should('be.visible')
  39. cy.get(':nth-child(2) .dashboard__calltoaction__button__text__icon').should('be.visible')
  40. cy.get(':nth-child(2) .dashboard__calltoaction__button__text__title').should('be.visible')
  41. cy.get(':nth-child(3).dashboard__calltoaction__button').should('be.visible')
  42. cy.get(':nth-child(3) .dashboard__calltoaction__button__text__icon').should('be.visible')
  43. cy.get(':nth-child(3) .dashboard__calltoaction__button__text__title').should('be.visible')
  44. cy.get(':nth-child(4).dashboard__calltoaction__button').should('be.visible')
  45. cy.get(':nth-child(4) .dashboard__calltoaction__button__text__icon').should('be.visible')
  46. cy.get(':nth-child(4) .dashboard__calltoaction__button__text__title').should('be.visible')
  47. })
  48. it ('activity', function() {
  49. cy.get('.activity .activity__header__title').should('be.visible')
  50. cy.get('.activity .activity__header__allread').should('be.visible')
  51. cy.get('.activity .activity__wrapper').should('be.visible')
  52. cy.get('.activity .activity__more__btn').should('be.visible')
  53. })
  54. it ('members', function() {
  55. cy.get('.memberlist .memberlist__title.subTitle').should('be.visible')
  56. cy.get('.memberlist .memberlist__list').should('be.visible')
  57. cy.get('.memberlist .memberlist__list__item__info').should('be.visible')
  58. cy.get('.memberlist .memberlist__btnadd').should('be.visible')
  59. cy.get('.memberlist .memberlist__btnadd__button__avatar').should('be.visible')
  60. cy.get('.memberlist .memberlist__btnadd__button__text').should('be.visible')
  61. })
  62. it ('link_webdav', function() {
  63. cy.get('.moreinfo .moreinfo__webdav').should('be.visible')
  64. cy.get('.moreinfo .moreinfo__webdav__btn').should('be.visible')
  65. cy.get('.moreinfo .moreinfo__webdav__btn__icon').should('be.visible')
  66. cy.get('.moreinfo .moreinfo__webdav__btn__text').should('be.visible')
  67. })
  68. // Not implemented in Tracim_V2.0
  69. // it ('link_calendar', function() {
  70. // cy.get('.moreinfo moreinfo__calendar').should('be.visible')
  71. // cy.get('.moreinfo moreinfo__calendar__btn').should('be.visible')
  72. // cy.get('.moreinfo moreinfo__calendar__btn__icon').should('be.visible')
  73. // cy.get('.moreinfo moreinfo__calendar__btn__text').should('be.visible')
  74. // })
  75. })