From 1cbf470fb428e4baa18fc75e100b84695f5b8de8 Mon Sep 17 00:00:00 2001 From: Walter Loso Date: Sat, 31 Jul 2021 00:17:57 +0300 Subject: [PATCH] Add a task to Survey being newly created. #6 ~ Created Tasks and added to newly created survey. #6 --- cypress/integration/platform.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/cypress/integration/platform.js b/cypress/integration/platform.js index ea7289b7..05658076 100644 --- a/cypress/integration/platform.js +++ b/cypress/integration/platform.js @@ -254,6 +254,30 @@ it ('Opens Survey Creation Page',() =>{ cy.contains('Add & close').click() + //Tasks + //opens tasks creation modal + cy.contains('Add task').click() + + //enters values in Tasks Name and Description fields + cy.get('[placeholder="Name this task..."]').type('Automated Task') + cy.get('[placeholder="Describe this task..."]').type('Automated Task Description') + + cy.contains('Add & close').click() + + + //create some task fields + //short text field + cy.get('#section-build-interim_id_3 > .listing > .listing-item > .listing-item-primary > .listing-item-title > .button').click() + cy.contains('Short text').click() + cy.get('#field-name').type('Automated Short Text Field') + cy.contains('Add & close').click() + + //long text field + cy.get('#section-build-interim_id_3 > .listing > .listing-item > .listing-item-primary > .listing-item-title > .button').click() + cy.contains('Long text').click() + cy.get('#field-name').type('Automated Long Text Field') + cy.contains('Add & close').click() + //click Save to save survey and complete survey creation process cy.contains('Save').click()