Skip to content

Commit

Permalink
Merge pull request #363 from CBIIT/sarwara2
Browse files Browse the repository at this point in the history
ESR Federal Lead Closeout Approval for ESR-I
  • Loading branch information
Mariachaudhry authored Jan 10, 2025
2 parents e2fdb53 + fc9e1b5 commit 94ca667
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/test/java/ITSM/ESR/playwright/features/ESRApproval.feature
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Feature: ESR Approvals
Then the user confirms the Federal Lead Closeout Approval is completed

@ESR-703 @sarwarahmed1 @Regression @playwright
Scenario: Test the Operational POC Approval catalog task in an ESR-I ticket
Scenario: Test the Operational POC Approval in an ESR-I ticket
Given a user logs into Native View on the NCI at your service page
And navigates to create ESR
And fills out all required information for ESR-I and clicks submit
Expand All @@ -73,4 +73,20 @@ Feature: ESR Approvals
And the Engineering Project Execution catalog task is completed
And the Closeout Preparation catalog task for ESR-I is completed
And the user is approved from the Operational POC
Then the user confirms the Operational POC Approval is completed
Then the user confirms the Operational POC Approval is completed

@ESR-704 @sarwarahmed1 @Regression @playwright
Scenario: Test the Federal Lead Closeout Approval in an ESR-I ticket
Given a user logs into Native View on the NCI at your service page
And navigates to create ESR
And fills out all required information for ESR-I and clicks submit
And user clicks on Intake Preparation catalog task
And user fills out all required information for ESR-I Intake Preparation
And the user is approved from a federal lead
And ESR Board Intake Review catalog task is completed
And the user is approved from the ESR Board approvers
And the Engineering Project Execution catalog task is completed
And the Closeout Preparation catalog task for ESR-I is completed
And the user is approved from the Operational POC
And the user is approved from a federal lead for ESR-I closeout approval
Then the user confirms the Federal Lead Closeout Approval is completed
5 changes: 5 additions & 0 deletions src/test/java/ITSM/ESR/playwright/steps/ESRApprovalSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,9 @@ public void the_user_is_approved_from_a_federal_lead_for_closeout_approval() {
public void the_user_confirms_the_federal_lead_closeout_approval_is_completed() {
ESRApprovalStepsImplementation.confirmFederalLeadCloseoutApprovalIsCompleted();
}

@And("the user is approved from a federal lead for ESR-I closeout approval")
public void the_user_is_approved_from_a_federal_lead_for_esr_i_closeout_approval() {
ESRApprovalStepsImplementation.federalLeadESRIApproval();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,14 @@ public static void federalLeadCloseoutApproval() {
public static void confirmFederalLeadCloseoutApprovalIsCompleted() {
assertThat(Playwright_Common_Locators.iframeLocator().locator("//select[@aria-label='Stage']")).containsText("ESR Board Closeout Review");
}

/**
* This method completes the Federal Lead Closeout approval for ESR-I
*/
public static void federalLeadESRIApproval() {
Playwright_Common_Locators.iframeLocator().locator("#tabs2_list").getByText("Approvers (11)").click();
Playwright_Common_Locators.iframeLocator().getByLabel("Requested - Open record:").click();
Playwright_Common_Locators.iframeLocator().locator("(//select[@aria-required='false'])[1]").selectOption("approved");
Playwright_Common_Locators.iframeLocator().locator("#sysverb_update").click();
}
}

0 comments on commit 94ca667

Please sign in to comment.