123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- describe('operation :: workspace > create_new > thread', function () {
- before(function () {
-
- 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 ('dashborad > button', function(){
- var titre1='thread1'
- cy.url().should('include', '/workspaces/1/dashboard')
- cy.get('.dashboard__calltoaction div:nth-child(2) .dashboard__calltoaction__button__text').should('be.visible')
- cy.get('.dashboard__calltoaction div:nth-child(2) .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('.createcontent button.createcontent__form__button').click()
- cy.get('.createcontent .createcontent__contentname').should('not.be.visible')
- cy.get('.thread.visible').should('be.visible')
- cy.get('#appFeatureContainer .wsContentGeneric__header__title').contains(titre1)
-
-
-
-
-
- cy.get('.thread__contentpage__header__close').click()
- cy.get('.thread.visible').should('not.be.visible')
-
-
- })
- it ('all content > header button ', function () {
- var titre1='thread1'
- cy.url().should('include', '/workspaces/1/contents')
- cy.get('#dropdownCreateBtn.workspace__header__btnaddcontent__label').should('be.visible')
- cy.get('#dropdownCreateBtn.workspace__header__btnaddcontent__label').click()
- cy.get('.show .subdropdown__link__thread').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('.createcontent button.createcontent__form__button').click()
- cy.get('.createcontent .createcontent__contentname').should('not.be.visible')
- cy.get('.thread.visible').should('be.visible')
- cy.get('#appFeatureContainer .wsContentGeneric__header__title').contains(titre1)
-
-
-
-
-
- cy.get('.thread__contentpage__header__close').click()
- cy.get('.thread.visible').should('not.be.visible')
-
-
- })
-
- })
|