Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selectDefaultInHomePage #330

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading