Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MayraMelisa committed Dec 11, 2024
1 parent 6cddb45 commit c68149b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
15 changes: 11 additions & 4 deletions pages/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
33 changes: 0 additions & 33 deletions pages/execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c68149b

Please sign in to comment.