123456789101112131415161718192021222324252627282930313233343536373839404142 |
- describe('navigate :: workspace > create_new > html-document', function () {
- before(function () {
- //login
- cy.visit('/login')
- cy.get('input[type=email]').type('admin@admin.admin')
- cy.get('input[type=password]').type('admin@admin.admin')
- cy.get('form').find('button').get('.connection__form__btnsubmit').click()
- })
- it ('dashboard > button', function() {
- var titre1='document1'
- cy.get('.dashboard__calltoaction div:nth-child(4) .dashboard__calltoaction__button__text').click()
- cy.get('.createcontent .createcontent__contentname').should('be.visible')
- cy.get('.createcontent .createcontent__form__input').should('have.attr', 'placeholder')
- cy.get('.createcontent .createcontent__form__input').type(titre1)
- cy.get('.createcontent .createcontent__form__input').should('have.attr', 'value', titre1)
- cy.get('.cardPopup__container .cardPopup__close').click()
- cy.get('.createcontent .createcontent__contentname').should('not.be.visible')
- })
- it ('all content > header button', function () {
- var titre1='document1'
- cy.get('#dropdownCreateBtn.workspace__header__btnaddcontent__label').click()
- cy.get('.show .subdropdown__link__html-document__icon').click()
- cy.get('.createcontent .createcontent__contentname').should('be.visible')
- cy.get('.createcontent .createcontent__form__input').should('have.attr', 'placeholder')
- cy.get('.createcontent .createcontent__form__input').type(titre1)
- cy.get('.createcontent .createcontent__form__input').should('have.attr', 'value', titre1)
- cy.get('.cardPopup__container .cardPopup__close').click()
- cy.get('.createcontent .createcontent__contentname').should('not.be.visible')
- })
- it ('all content > content button', function () {
- var titre1='document1'
- cy.get('.workspace__content__button.dropdownCreateBtn .btn-primary').click()
- cy.get('.show .subdropdown__link__html-document__icon').click()
- cy.get('.createcontent .createcontent__contentname').should('be.visible')
- cy.get('.createcontent .createcontent__form__input').should('have.attr', 'placeholder')
- cy.get('.createcontent .createcontent__form__input').type(titre1)
- cy.get('.createcontent .createcontent__form__input').should('have.attr', 'value', titre1)
- cy.get('.cardPopup__container .cardPopup__close').click()
- cy.get('.createcontent .createcontent__contentname').should('not.be.visible')
- })
- })
|