Skip to content

Commit

Permalink
Merge pull request #368 from CBIIT/sarwara2
Browse files Browse the repository at this point in the history
ESR Closeout Review Catalog Task for ESR-Q
  • Loading branch information
Mariachaudhry authored Jan 15, 2025
2 parents e2eb52b + 81d52bc commit a19aa17
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/test/java/ITSM/ESR/playwright/features/ESRApproval.feature
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,34 @@ Feature: ESR Approvals
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
Then the user confirms the Federal Lead Closeout Approval is completed

@ESR-712 @sarwarahmed1 @In-Progress @playwright
Scenario: Test the ESR Board Closeout Review approvals in an ESR-Q 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-Q and clicks submit
And user clicks on Intake Preparation catalog task
And user fills out all required information for ESR-Q 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-Q is completed
And the user is approved from a federal lead for closeout approval
And the ESR Board Closeout Review catalog task is completed

@ESR-714 @sarwarahmed1 @In-Progress @playwright
Scenario: Test the ESR Board Closeout Review approvals 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
31 changes: 31 additions & 0 deletions src/test/java/ITSM/ESR/playwright/features/ESRTask.feature
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,34 @@ Feature: ESR Tasks
And the Engineering Project Execution catalog task is completed
And the Closeout Preparation catalog task for ESR-I is completed
Then the user confirms the Closeout Preparation catalog task is completed

@ESR-710 @sarwarahmed1 @Regression @playwright
Scenario: Test the ESR Board Closeout catalog task in an ESR-Q 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-Q and clicks submit
And user clicks on Intake Preparation catalog task
And user fills out all required information for ESR-Q 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-Q is completed
And the user is approved from a federal lead for closeout approval
And the ESR Board Closeout Review catalog task is completed
Then the user confirms the ESR Board Closeout Review catalog task is completed

@ESR-??? @sarwarahmed1 @In-Progress @playwright
Scenario: Test the ESR Board Closeout catalog task 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
10 changes: 10 additions & 0 deletions src/test/java/ITSM/ESR/playwright/steps/ESRTaskSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,14 @@ public void the_closeout_preparation_catalog_task_for_esr_i_is_completed() {
public void the_user_confirms_the_closeout_preparation_catalog_task_is_completed() {
ESRTaskStepsImplementation.confirmCloseoutPreparationCatalogTaskIsCompleted();
}

@And("the ESR Board Closeout Review catalog task is completed")
public void the_esr_board_closeout_review_catalog_task_is_completed() {
ESRTaskStepsImplementation.completeESRBoardCloseoutReviewCatalogTask();
}

@Then("the user confirms the ESR Board Closeout Review catalog task is completed")
public void the_user_confirms_the_esr_board_closeout_review_catalog_task_is_completed() {
ESRTaskStepsImplementation.confirmESRBoardCloseoutReviewCatalogTaskIsCompleted();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,23 @@ public static void completeCloseoutPreparationCatalogTaskForESRI() {
public static void confirmCloseoutPreparationCatalogTaskIsCompleted() {
assertThat(Playwright_Common_Locators.iframeLocator().locator("//select[@aria-label='Stage']")).containsText("Federal Lead Closeout Approval");
}

/**
* Completes the ESR Board Closeout Review catalog task for an ESR-Q ticket
*/
public static void completeESRBoardCloseoutReviewCatalogTask() {
Playwright_Common_Locators.iframeLocator().locator("#tabs2_list").getByText("Catalog Tasks (5)").click();
Playwright_Common_Locators.iframeLocator().locator("(//td[@class='vt']/a)[1]").click();
Playwright_Common_Locators.iframeLocator().locator("//input[@aria-labelledby='label.sc_task.assigned_to']").click();
Playwright_Common_Locators.iframeLocator().locator("//input[@aria-labelledby='label.sc_task.assigned_to']").fill("Kui Wu");
Playwright_Common_Locators.iframeLocator().getByLabel("Catalog Task form section").getByLabel("State").selectOption("3");
Playwright_Common_Locators.iframeLocator().locator("#sysverb_update").click();
}

/**
* Confirms that the ESR Board Closeout Review catalog task is completed
*/
public static void confirmESRBoardCloseoutReviewCatalogTaskIsCompleted() {
assertThat(Playwright_Common_Locators.iframeLocator().locator("//select[@aria-label='Approval']")).containsText("Requested");
}
}

0 comments on commit a19aa17

Please sign in to comment.