navigation_from_login_page_to_home_page.js 886B

12345678910111213141516171819
  1. describe('logging in tracim', function () {
  2. before(function () {
  3. cy.visit('/login')
  4. })
  5. it('', function () {
  6. // type username
  7. cy.get('input[type=email]').type('admin@admin.admin').should('have.value','admin@admin.admin')
  8. // type password
  9. cy.get('input[type=password]').type('admin@admin.admin').should('have.value','admin@admin.admin')
  10. // click on button "connexion" also if name of button change
  11. cy.get('form').find('button').get('.connection__form__btnsubmit').click()
  12. // we should be redirected to /dashboard
  13. cy.url().should('include', 'http://localhost:6543/')
  14. cy.get('.profilgroup__name__imgprofil').should('have.attr','src')
  15. // for the moment we don't have name by default (26/07/2018)
  16. cy.get('.profilgroup__name__imgprofil').invoke('text').should('be.equal','')
  17. })
  18. })