Skip to content

Commit

Permalink
Merge pull request #260 from CBIIT/cabreralf
Browse files Browse the repository at this point in the history
Updated tests to work after Washington D.C. SNOW UPDATE
  • Loading branch information
iamdez99 authored Aug 26, 2024
2 parents a6a1212 + 0929786 commit 62e4778
Show file tree
Hide file tree
Showing 13 changed files with 165 additions and 145 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
<dependency>
<groupId>com.microsoft.playwright</groupId>
<artifactId>playwright</artifactId>
<version>1.43.0</version>
<version>1.46.0</version>
</dependency>
</dependencies>
<build>
Expand Down
42 changes: 42 additions & 0 deletions src/main/resources/conf/env/sandbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -235,5 +235,47 @@
</db>
</application>

<!-- Application ID for Native View Sidedoor-->
<application id="nativeviewSideDoor">
<login_url>https://service-sandbox.nci.nih.gov/side_door.do</login_url> <!-- add test
url -->
<role name="Role">
<user id="regular">
<name>regular</name>
<userId></userId> <!-- add encrypted test user -->
<password></password> <!-- add encrypted test pass -->
</user>
</role>
<db>
<default>
<driverclassname></driverclassname> <!-- Add driver class-name -->
<url></url> <!-- complete string url -->
<username></username> <!-- Add db username -->
<password></password> <!-- Add db password -->
</default>
</db>
</application>

<!-- Application ID for SCSS Portal View-->
<application id="SSJPortalView">
<login_url>https://service-sandbox.nci.nih.gov/nih-ssj.do
</login_url> <!-- add test url -->
<role name="Role">
<user id="regular">
<name>regular</name>
<userId></userId> <!-- add encrypted test user -->
<password></password> <!-- add encrypted test pass -->
</user>
</role>
<db>
<default>
<driverclassname></driverclassname> <!-- Add driver class-name -->
<url></url> <!-- complete string url -->
<username></username> <!-- Add db username -->
<password></password> <!-- Add db password -->
</default>
</db>
</application>


</environment>
33 changes: 0 additions & 33 deletions src/test/java/PlaywrightTests/steps/Example.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Applicant Profile Scenarios
Description: This Feature file contains Applicant Profile Scenarios

@SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @JUAREZDS @Regression @playwright
@SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @JUAREZDS @Regression @playwright @SNOW_UPDATED
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 Down Expand Up @@ -43,7 +43,7 @@ Feature: Applicant Profile Scenarios
| SSJTest | Marianna | Mollick | mollickja@nih.gov | 7018211343 | 2123323454 | Masters | Yes | 11 Kolls | 6 | Sausalito | CA | USA | 97712 |
| SSJTest | Elena | Andrew | andrewkl@nih.gov | 8233212333 | 2202122234 | Bachelors | Yes | 11 Bells | 39 | Sacramento | CA | USA | 95512 |

@SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @SSJ-712 @JUAREZDS @Regression @playwright
@SSJ-32 @SSJ-33 @SSJ-36 @SSJ-92 @SSJ-98 @SSJ-712 @JUAREZDS @Regression @playwright @SNOW_UPDATED
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 Down Expand Up @@ -86,23 +86,7 @@ Feature: Applicant Profile Scenarios
| 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 "SSJTest" 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 chooses to share demographic details - PW
And User edits sex choice - PW
And User edits ethnicity choice - PW
And User edits race choice - PW
And User edits disability choice - PW
And User saves the updated section - PW
And User clicks Edit for Demographics section - PW
And User chooses not to share demographic details - PW
Then User saves the updated section - PW

@US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright
@US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright @SNOW_UPDATED
Scenario Outline: Verifying applicant is able to see "Your Applications" tab and page content after applying to a Vacancy
# Given an Okta user "" is on the SSJ home page and logs in - PLEASE LEAVE THIS HERE! NEED TO CONNECT WITH OKTA TEAM
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
Expand All @@ -121,7 +105,7 @@ Feature: Applicant Profile Scenarios
And clicks "Save"
And clicks Save for Mandatory Statements
And selects "David Rampulla" for Committee Member with chair role
And selects "Jay Kurani" for Committee Member with Executive Secretary role
And selects "Jason Levine" for Committee Member with Executive Secretary role
And clicks "Save"
And clicks Save for Email Templates
Then user is able to see the Review and Finalize section with the vacancy information submitted
Expand All @@ -141,7 +125,7 @@ Feature: Applicant Profile Scenarios
And verifies Personnel Action Tracking Solution (PATS) Initiator is "Holly Gemar-Griffith"
And verifies Mandatory Statements "Equal Opportunity Employment", "Standards of Conduct/Financial Disclosure", "Foreign Education", and "Reasonable Accomodation" are displayed
And verifies Committee Member "David Rampulla" is displayed with role "Chair"
And verifies Committee Member "Jay Kurani" is displayed with role "Executive Secretary (non-voting)"
And verifies Committee Member "Jason Levine" is displayed with role "Executive Secretary (non-voting)"
And verifies Email Templates "Application saved", "Application submitted confirmation", "Applicant Reference Request", "Applicant Reference Received", "Applicant Reference Received - Applicant"
And clicks "Save and Finalize"
And clicks "OK"
Expand Down Expand Up @@ -212,8 +196,8 @@ Feature: Applicant Profile Scenarios
And user verifies basic information "<firstName>", "<middleName>", "<lastName>", "<email>", "<phone>", "<businessPhone>", "<highestEducation>", and "<US Citizenship>"
And user verifies address information "<address>", "<aptNumber>", "<city>", "<state>", "<zip>"
And user verifies demographics information "Yes", "Male", "Hispanic or Latino", "American Indian or Alaska Native, Asian, Black or African-American, Native Hawaiian or other Pacific Islander, White", and "None of the conditions listed above apply to me."
And user verifies references one information "<referenceOneFirstName>", "<referenceOneMiddleName>", "<referenceOneLastName>", "<referenceOneEmail>", "<referenceOnePhoneNumber>", "<referenceOneRelationship>", "<referenceOnePositionTitle>", "<referenceOneOrganizationName>"
And user verifies references two information "<referenceTwoFirstName>", "<referenceTwoMiddleName>", "<referenceTwoLastName>", "<referenceTwoEmail>", "<referenceTwoPhoneNumber>", "<referenceTwoRelationship>", "<referenceTwoPositionTitle>", "<referenceTwoOrganizationName>"
And user verifies references one information "<referenceOneFirstName>", "<referenceOneLastName>", "<referenceOneEmail>", "<referenceOnePhoneNumber>", "<referenceOneRelationship>", "<referenceOnePositionTitle>", "<referenceOneOrganizationName>"
And user verifies references two information "<referenceTwoFirstName>", "<referenceTwoLastName>", "<referenceTwoEmail>", "<referenceTwoPhoneNumber>", "<referenceTwoRelationship>", "<referenceTwoPositionTitle>", "<referenceTwoOrganizationName>"
And if either a Cover Letter, Qualification Statement, Curriculum Vitae (CV), or Vision Statement (or all) were uploaded then documents are displayed in the Application Documents section
And clicks "Submit Application"
And clicks "Ok"
Expand All @@ -229,12 +213,12 @@ Feature: Applicant Profile Scenarios
| SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | Yes | 7 Mills | 12378 | Reston | VA | USA | 20453 | Fred | Trout | Laste | referenceOne@test.com | 7036875816 | Supervisor/Manager | PROJECT MANAGER | TESTING ORGANIZATION FIELD FOR REFERENCE ONE | John | Steven | Vakhutko | referenceTwo@test.com | 7036875816 | Co-worker | TEST AUTOMATION LEAD | TESTING ORGANIZATION FIELD FOR REFERENCE TWO |


@US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright
@US_APPTRACK-342 @TC_APPTRACK-385 @JUAREZDS @Regression @playwright @SNOW_UPDATED
Scenario: Verifying applicant does not see "Your Applications" tab if applicant has not applied to a Vacancy
Given a user who has not applied to a Vacancy before is on the SSJ home page
Then Your Applications tab should NOT be displayed

@TC_APPTRACK-145 @JUAREZDS @Regression @playwright
@TC_APPTRACK-145 @JUAREZDS @Regression @playwright @SNOW_UPDATED
Scenario: Verifying Vacancy details
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And clicks on "Vacancy Dashboard" - PW
Expand All @@ -252,7 +236,7 @@ Feature: Applicant Profile Scenarios
And clicks "Save"
And clicks Save for Mandatory Statements
And selects "David Rampulla" for Committee Member with chair role
And selects "Jay Kurani" for Committee Member with Executive Secretary role
And selects "Jason Levine" for Committee Member with Executive Secretary role
And clicks "Save"
And clicks Save for Email Templates
Then user is able to see the Review and Finalize section with the vacancy information submitted
Expand Down Expand Up @@ -287,7 +271,7 @@ Would you like to log in now or go back to the home page?
And clicks "Log in" and is redirected to the Okta Login Portal
And verifies that the PIV CAC card button text is "Sign in with PIV / CAC card"

@TC_APPTRACK-128 @JUAREZDS @Regression @playwright
@TC_APPTRACK-128 @JUAREZDS @Regression @playwright @SNOW_UPDATED
Scenario Outline: Verification of the Save application functionality
Given a test account "SSJTest" is reset before executing a test
And a test vacancy "DIEGO TEST" is reset before creating a vacancy
Expand All @@ -307,7 +291,7 @@ Would you like to log in now or go back to the home page?
And clicks "Save"
And clicks Save for Mandatory Statements
And selects "David Rampulla" for Committee Member with chair role
And selects "Jay Kurani" for Committee Member with Executive Secretary role
And selects "Jason Levine" for Committee Member with Executive Secretary role
And clicks "Save"
And clicks Save for Email Templates
And user is able to see the Review and Finalize section with the vacancy information submitted
Expand Down Expand Up @@ -355,7 +339,7 @@ Would you like to log in now or go back to the home page?
| firstName | middleName | lastName | email | phone | businessPhone | highestEducation | address | aptNumber | city | state | country | zip |
| SSJTest | Michelle | Pololi | mario@gmail.com | 2018212343 | 2023323454 | Masters | 7 Mills | 12378 | Reston | VA | USA | 20453 |

@TC_APPTRACK-360 @JUAREZDS @Regression @playwright
@TC_APPTRACK-360 @JUAREZDS @Regression @playwright @SNOW_UPDATED
Scenario Outline: Verification of the Save application functionality
Given a test account "SSJTest" is reset before executing a test
And User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
Expand All @@ -374,7 +358,7 @@ Would you like to log in now or go back to the home page?
And clicks "Save"
And clicks Save for Mandatory Statements
And selects "David Rampulla" for Committee Member with chair role
And selects "Jay Kurani" for Committee Member with Executive Secretary role
And selects "Jason Levine" for Committee Member with Executive Secretary role
And clicks "Save"
And clicks Save for Email Templates
And user is able to see the Review and Finalize section with the vacancy information submitted
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: OWM Vacancy Manager Scenarios
Description: This Feature file contains OWM Vacancy Manager Scenarios

@SSJ-7 @SSJ-8 @juarezds @Regression @playwright @Smoke
@SSJ-7 @SSJ-8 @juarezds @Regression @playwright @Smoke @SNOW_UPDATED
Scenario: Verification of Basic Vacancy Information section while creating an NCI Vacancy
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
Expand Down Expand Up @@ -46,7 +46,7 @@ Feature: OWM Vacancy Manager Scenarios
And User clicks "Save" button to save the Basic Vacancy Information
And User confirms that User is on "Mandatory Statements" section

@SSJ-69 @juarezds @Regression @playwright @Smoke
@SSJ-69 @juarezds @Regression @playwright @Smoke @SNOW_UPDATED
Scenario: Verification of Mandatory Statements section while creating an NCI Vacancy
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
Expand Down Expand Up @@ -78,7 +78,7 @@ Feature: OWM Vacancy Manager Scenarios
And User clicks button "Save" - PW
Then User confirms that User is on "Vacancy Committee" section

@SSJ-185 @SSJ-306 @juarezds @Regression @playwright
@SSJ-185 @SSJ-306 @juarezds @Regression @playwright @SNOW_UPDATED
Scenario: Verification of Vacancy Committee section while creating an NCI Vacancy Positive Flow
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
Expand Down Expand Up @@ -113,7 +113,7 @@ Feature: OWM Vacancy Manager Scenarios
And User clicks button "Save" - PW
Then User is directed to "Email Templates" section

@SSJ-11 @Regression @playwright @carberalf
@SSJ-11 @Regression @playwright @carberalf @SNOW_UPDATED
Scenario: Verification of Vacancy Committee section while creating an NCI Vacancy Negative Flow
When User is on SSJ Landing page and user is "OWM Vacancy Manager" - PW
And User navigates to tab "Vacancy Dashboard" - PW
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public static String dynamicUserLocator(String userName){
/**
* USERS DROPDOWN
*/
public static String usersDropDown = "//select[@aria-label='Search a specific field of the Users list']";
public static String usersDropDown = "//select[@aria-label='Search a specific field of the Users list, 9 items']";

}
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ public void user_verifies_demographics_information_and(String sharingDemographic
ApplicantProfileStepsImpl.user_verifies_demographics_information_and(sharingDemographicsText, sexText, ethnicityText, raceText, disabilityText);
}

@Then("user verifies references one information {string}, {string}, {string}, {string}, {string}, {string}, {string}, {string}")
public void user_verifies_references_information(String firstNameText, String middleNameText, String lastNameText, String emailText, String phoneNumberText, String relationshipText, String titleText, String organizationText) {
ApplicantProfileStepsImpl.user_verifies_references_information(firstNameText, middleNameText, lastNameText, emailText, phoneNumberText, relationshipText, titleText, organizationText);
@Then("user verifies references one information {string}, {string}, {string}, {string}, {string}, {string}, {string}")
public void user_verifies_references_information(String firstNameText, String lastNameText, String emailText, String phoneNumberText, String relationshipText, String titleText, String organizationText) {
ApplicantProfileStepsImpl.user_verifies_references_information(firstNameText, lastNameText, emailText, phoneNumberText, relationshipText, titleText, organizationText);
}

@Then("if reference two is required then user enters Reference Two first name {string}")
Expand Down Expand Up @@ -347,9 +347,9 @@ public void enters_reference_two_organization_name(String organizationTextBox) {
ApplicantProfileStepsImpl.enters_reference_two_organization_name(organizationTextBox);
}

@Then("user verifies references two information {string}, {string}, {string}, {string}, {string}, {string}, {string}, {string}")
public void user_verifies_references_two_information(String firstNameText, String middleNameText, String lastNameText, String emailText, String phoneNumberText, String relationshipText, String titleText, String organizationText) {
ApplicantProfileStepsImpl.user_verifies_references_two_information(firstNameText, middleNameText, lastNameText, emailText, phoneNumberText, relationshipText, titleText, organizationText);
@Then("user verifies references two information {string}, {string}, {string}, {string}, {string}, {string}, {string}")
public void user_verifies_references_two_information(String firstNameText, String lastNameText, String emailText, String phoneNumberText, String relationshipText, String titleText, String organizationText) {
ApplicantProfileStepsImpl.user_verifies_references_two_information(firstNameText, lastNameText, emailText, phoneNumberText, relationshipText, titleText, organizationText);
}

@Then("if either a Cover Letter, Qualification Statement, Curriculum Vitae \\(CV), or Vision Statement \\(or all) were uploaded then documents are displayed in the Application Documents section")
Expand Down
Loading

0 comments on commit 62e4778

Please sign in to comment.