diff --git a/pages/admin.js b/pages/admin.js index f15e1cc..a912cd8 100644 --- a/pages/admin.js +++ b/pages/admin.js @@ -681,12 +681,19 @@ export class Admin { } selectDefaultInHomePage() { cy.get("#dynamic-ui").scrollIntoView().should("be.visible"); - cy.xpath("//label[text()='Home Page']/parent::div//div[@class='multiselect__select']").click(); - cy.xpath("//label[text()='Home Page']/parent::div//input").type("Default").should('have.value',"Default"); + cy.xpath("//label[text()='Home Page']/parent::div//div[@class='multiselect__select']") + .should("be.visible") + .click(); + cy.xpath("//label[text()='Home Page']/parent::div//input") + .should("be.visible") + .type("Default",{delay:200}) + .should('have.value',"Default"); cy.xpath("//label[text()='Home Page']/parent::div//div[@class='multiselect__content-wrapper']//li[1]") - .should('have.attr', 'aria-label') - .and('equal', "Default. "); + .should("be.visible") + .and('have.attr', 'aria-label').and('equal', "Default. "); + cy.xpath("//label[text()='Home Page']/parent::div//input").type('{enter}'); + cy.wait(500); } saveChagesInProfile() { cy.get("#saveUser").click(); diff --git a/pages/execution.js b/pages/execution.js index 06c3061..f7acffb 100644 --- a/pages/execution.js +++ b/pages/execution.js @@ -1171,39 +1171,6 @@ export class Execution { cy.get('div[class="flex-grow-1"]').contains("Admin User has completed the task Task 2"); } - actionsAndAssertionsOfTCP42315() { - var processname = 'TCP4-2315 Check interstitial with script in a sub process'; - //Open requests to Conversational form - cy.get('button[id="navbar-request-button"]').click(); - cy.get('[class="process-list"]').should('be.visible'); - cy.get('input[class="form-control"]').type(processname).should('have.value',processname); - - cy.xpath("//*[@class='modal-content']//*[contains(text(),'processName')]/ancestor::div[@class='card-body']/div".replace('processName',processname), { timeout: 10000 }) - .then(() => { - cy.xpath("//*[@class='modal-content']//*[contains(text(),'processName')]/ancestor::div[@class='card']//button[contains(text(),'Start')]".replace('processName',processname)).should('be.visible'); - cy.wait(2000); - cy.xpath("//*[@class='modal-content']//*[contains(text(),'processName')]/ancestor::div[@class='card']//button[contains(text(),'Start')]".replace('processName',processname)).click(); - }); - //Completed task - cy.get('input[name="form_input_1"]').type("yes"); - cy.xpath('//button[@class="btn input-submit btn-link"]').click(); - cy.xpath('//button[@class="btn mb-2 select-list-options w-100 btn-outline-primary btn-sm rounded-pill"]').first() - .click(); - request.waitUntilElementIsVisible('selector','[id="summary-tab"]'); - //Review Summary - cy.get('[id="summary-tab"]').should('be.visible').click(); - cy.get('#summary > div > div > table > tbody > tr').eq(0).find('td').eq(1).should('have.text','ASSAM is ASSAM KERELA is KERELA ORRISA is ORRISA'); - - //Review Sub process Complete - var processName = 'Subprocess 2315'; - navHelper.navigateToAllRequests(); - request.openRequestByNameForCompletedProcess(processName); - - //Review Summary subprocess - cy.get('[id="summary-tab"]').should('be.visible').click(); - cy.get('#summary > div > div > table > tbody > tr').eq(9).find('td').eq(1).should('have.text','Israel Japan Germany'); - - } async actionsAndAssertionsOfTCP42338(requestId){ request.openNewRequest(