Skip to content

Commit

Permalink
Merge pull request #255 from CBIIT/cabreralf
Browse files Browse the repository at this point in the history
Fixed smoke tests logic for Saving Demographics functionality after bug fix
  • Loading branch information
iamdez99 authored Jul 19, 2024
2 parents c547b23 + ac6ff6c commit 5d4da73
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Feature: Applicant Profile Scenarios
| Jessica | Marianna | Mollick | mollickja@nih.gov | 7018211343 | 2123323454 | Masters | Yes | 11 Kolls | 6 | Sausalito | CA | USA | 97712 |
| Karen | Elena | Andrew | andrewkl@nih.gov | 8233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 39 | Sacramento | CA | USA | 95512 |

@juarezds @SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @Regression @playwright @Bug_Open @Smoke
@juarezds @SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @Regression @playwright @SSJ-712 @Smoke
Scenario Outline: Verifying the Save application functionality
Given a test account "<firstName>" is reset before executing a test
When User is on SSJ Landing page and user is "Maria Chaudhry" - PW
Expand All @@ -70,18 +70,7 @@ Feature: Applicant Profile Scenarios
And verifies that the saved business phone number displays as "<businessPhone>"
And verifies that the saved highest education displays as "<highestEducation>"
And verifies that the saved US Citizenship displays as "<US Citizenship>"
And tester navigates to native view to reset account with name "<firstName>" so that automated test can run again without manual intervention

Examples:
| firstName | middleName | lastName | email | phone | businessPhone | highestEducation | US Citizenship | address | aptNumber | city | state | country | zip |
| SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 |

@alenan @SSJ-712 @Bug_Open @juarezds @In_Progress @playwright @Smoke
Scenario: Edit Demographics of Profile
Given a test account "Maria Chaudhry" is reset before executing a test
When User is on SSJ Landing page and user is "Maria Chaudhry" - PW
When User is on Profile tab - PW
And User clicks Edit for Demographics section - PW
And User clicks Demographics section - PW
And User chooses to share demographic details - PW
And User edits sex choice - PW
And User edits ethnicity choice - PW
Expand All @@ -91,6 +80,11 @@ Feature: Applicant Profile Scenarios
And User clicks Edit for Demographics section - PW
And User chooses not to share demographic details - PW
Then User saves the updated section - PW
And tester navigates to native view to reset account with name "<firstName>" so that automated test can run again without manual intervention

Examples:
| firstName | middleName | lastName | email | phone | businessPhone | highestEducation | US Citizenship | address | aptNumber | city | state | country | zip |
| SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 |

@US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright
Scenario Outline: Verifying applicant is able to see "Your Applications" tab and page content after applying to a Vacancy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Feature: OWM Vacancy Manager Scenarios

@SSJ-69 @juarezds @Regression @playwright @Smoke
Scenario: Verification of Mandatory Statements section while creating an NCI Vacancy
When User is on SCSS Landing page and user is "OWM Vacancy Manager" - PW
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
And User clicks button "+ Create Vacancy" - PW
And User fills in "Vacancy Title" field with title "Testing Automation Title"
Expand Down Expand Up @@ -80,7 +80,7 @@ Feature: OWM Vacancy Manager Scenarios

@SSJ-185 @SSJ-306 @juarezds @Regression @playwright
Scenario: Verification of Vacancy Committee section while creating an NCI Vacancy Positive Flow
When User is on SCSS Landing page and user is "OWM Vacancy Manager" - PW
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
And User clicks button "+ Create Vacancy" - PW
And User fills in "Vacancy Title" field with title "Testing Automation Title"
Expand Down Expand Up @@ -115,7 +115,7 @@ Feature: OWM Vacancy Manager Scenarios

@SSJ-11 @Regression @playwright @carberalf
Scenario: Verification of Vacancy Committee section while creating an NCI Vacancy Negative Flow
When User is on SCSS Landing page and user is "OWM Vacancy Manager" - PW
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
And User clicks button "+ Create Vacancy" - PW
And User fills in "Vacancy Title" field with title "Testing Automation Title SSJ"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import ServiceNow.PlatformBusinessApps.SSJ.playwright.StepsImplementation.ApplicantProfileStepsImpl;
import ServiceNow.PlatformBusinessApps.SSJ.playwright.StepsImplementation.Reset_Account_StepsImpl;
import appsCommon.PlaywrightUtils.Playwright_ServiceNow_Common_Methods;
import com.nci.automation.web.PlaywrightUtils;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
Expand Down Expand Up @@ -146,6 +147,11 @@ public void user_clicks_edit_for_demographics_section_pw() {
ApplicantProfileStepsImpl.user_clicks_edit_for_demographics_section();
}

@Then("User clicks Demographics section - PW")
public void user_clicks_demographics_section_pw() {
PlaywrightUtils.page.locator(Profile_Tab_Page.demographicsOptionalTab).click();
}

@When("User chooses to share demographic details - PW")
public void user_chooses_to_share_demographic_details_pw() {
ApplicantProfileStepsImpl.user_chooses_to_share_demographic_details();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public static void verifies_that_the_saved_phone_number_displays_as(String expec
* USE THIS METHOD TO EDIT DEMOGRAPHICS SECTION
*/
public static void user_clicks_edit_for_demographics_section() {
PlaywrightUtils.page.locator(Profile_Tab_Page.demographicsOptionalTab).click();
PlaywrightUtils.page.locator(Profile_Tab_Page.demographicsEditButton).click();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Feature: Applicant Flow Scenarios
When User clicks to apply for a live vacancy
And User verifies that a vacancy title is displayed
And User verifies that open and close dates are displayed
And User verifies that a close date has "12:00PM ET" end period specified
And User verifies that Point of Contact is displayed
And User verifies that Application Documents header is displayed
And User confirms that HHS and NIH are Equal Opportunity Employers Statements are displayed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,6 @@ public void user_verifies_that_open_and_close_dates_are_displayed() {
Assert.assertNotNull(closeDateLiveVacancyVacDetailsView);
}

@Given("User verifies that a close date has {string} end period specified")
public void user_verifies_that_a_close_date_has_end_period_specified(String endPeriod) {
Assert.assertTrue(applicantFlowStepsImplementation.verifyCloseDateContent(endPeriod));
}

@Given("User verifies that Point of Contact is displayed")
public void user_verifies_that_point_of_contact_is_displayed() {
String pocVacDetailsView = applicantFlowPage.pocVacDetailsView.getText();
Expand Down

0 comments on commit 5d4da73

Please sign in to comment.