content_admin_workspace.js 1.3KB

123456789101112131415161718192021222324
  1. describe('content :: admin > workspace', 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.get('.adminlink__btn.dropdown-toggle').click()
  9. cy.get('a.setting__link[href="/admin/workspace"]').click()
  10. cy.url().should('include', '/admin/workspace')
  11. })
  12. it ('', function(){
  13. cy.get('.adminWorkspacePage__description').should('be.visible')
  14. cy.get('.adminWorkspacePage__delimiter').should('be.visible')
  15. cy.get('.adminWorkspacePage__workspaceTable').should('be.visible')
  16. })
  17. it ('content of workspaceTable', function(){
  18. cy.get('.adminWorkspacePage__workspaceTable th:nth-child(1)[scope="col"]').should('be.visible')
  19. cy.get('.adminWorkspacePage__workspaceTable th:nth-child(2)[scope="col"]').should('be.visible')
  20. cy.get('.adminWorkspacePage__workspaceTable th:nth-child(3)[scope="col"]').should('be.visible')
  21. cy.get('.adminWorkspacePage__workspaceTable th:nth-child(4)[scope="col"]').should('be.visible')
  22. cy.get('.adminWorkspacePage__workspaceTable th:nth-child(5)[scope="col"]').should('be.visible')
  23. })
  24. })