Browse Source

update and config file for cypress

philippe 6 years ago
parent
commit
de240d9caa

+ 2 - 2
functionnal_tests/app_html-document/operation_create_html-document.js View File

33
     it ('all content > header button ', function () {
33
     it ('all content > header button ', function () {
34
         var titre2='all content button'
34
         var titre2='all content button'
35
         cy.url().should('include', '/workspaces/1/contents')
35
         cy.url().should('include', '/workspaces/1/contents')
36
-        cy.get('.workspace__header__btnaddcontent').should('be.visible')
37
-        cy.get('.workspace__header__btnaddcontent').click()
36
+        cy.get('.workspace__header__btnaddcontent__label').should('be.visible')
37
+        cy.get('.workspace__header__btnaddcontent__label').click()
38
         cy.get('.workspace__header__btnaddcontent__setting div:nth-child(4).subdropdown__link').click()
38
         cy.get('.workspace__header__btnaddcontent__setting div:nth-child(4).subdropdown__link').click()
39
         cy.get('.createcontent .createcontent__contentname').should('be.visible')
39
         cy.get('.createcontent .createcontent__contentname').should('be.visible')
40
         cy.get('.createcontent .createcontent__form__input').should('have.attr', 'placeholder')
40
         cy.get('.createcontent .createcontent__form__input').should('have.attr', 'placeholder')

+ 5 - 0
functionnal_tests/cypress.json View File

1
+{
2
+  "baseUrl": "http://localhost:6543",
3
+  "viewportWidth": 1280,
4
+  "viewportHeight": 1024,
5
+}