-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from CBIIT/Alena
CCR Careers Smoke test: Fill In An Application As An Internal User , Verify CCR Landing Page items
- Loading branch information
Showing
11 changed files
with
552 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/test/java/CustomBusiness/CCR/Constants/CCR_CONSTANTS.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package CustomBusiness.CCR.Constants; | ||
|
||
public class CCR_CONSTANTS { | ||
|
||
public static final String CV = System.getProperty("user.dir") + "/src/test/java/CustomBusiness/CCR/Resources/CV.docx"; | ||
public static final String DIVERSITY_STATEMENT = System.getProperty("user.dir") + "/src/test/java/CustomBusiness/CCR/Resources/DiversityStatement.docx"; | ||
public static final String LETTER_OF_INTEREST = System.getProperty("user.dir") + "/src/test/java/CustomBusiness/CCR/Resources/LetterOfInterest.docx"; | ||
public static final String APPLICANT = "Alena Nekrashevich"; | ||
public static final String ADMIN = "Lori Holliday"; | ||
public static final String CV = "C:\\Users\\nekrashevicha2\\Desktop\\CBIIT-Test-Automation\\src\\test\\java\\CustomBusiness\\CCR\\Resources\\CV.docx"; | ||
public static final String RESEARCH_GOALS ="C:\\Users\\nekrashevicha2\\Desktop\\CBIIT-Test-Automation\\src\\test\\java\\CustomBusiness\\CCR\\Resources\\ResearchGoals.docx"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/test/java/CustomBusiness/CCR/Pages/CCRAdminUserPage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package CustomBusiness.CCR.Pages; | ||
|
||
import com.nci.automation.web.CommonUtils; | ||
import com.nci.automation.web.WebDriverUtils; | ||
import org.openqa.selenium.WebElement; | ||
import org.openqa.selenium.support.FindBy; | ||
import org.openqa.selenium.support.PageFactory; | ||
|
||
public class CCRAdminUserPage extends CommonUtils { | ||
|
||
public CCRAdminUserPage() { | ||
PageFactory.initElements(WebDriverUtils.webDriver, this); | ||
} | ||
|
||
/** Positions tab**/ | ||
@FindBy(xpath = "//li//a[.=' Positions ']") | ||
public WebElement tabPositions; | ||
|
||
/** button Add Position**/ | ||
@FindBy(xpath = "//a[@class='btn btn-default btn-sm border-0 mt-0 mb-0 ng-scope']") | ||
public WebElement buttonAddPosition; | ||
|
||
/** field Position Title**/ | ||
@FindBy(xpath = "//input[@id='title']") | ||
public WebElement fieldPositionTitle; | ||
|
||
/** field Description**/ | ||
@FindBy(xpath = "//body[@data-id='description']//p") | ||
public WebElement fieldDescription; | ||
|
||
/** Todays Date Active Datepicker Choice**/ | ||
@FindBy(xpath = "//button[@class='btn btn-default btn-sm active']") | ||
public WebElement todaysDateActiveField; | ||
|
||
/** Open Date Calendar**/ | ||
@FindBy(xpath = "(//i[@class='fa fa-calendar'])[1]") | ||
public WebElement openDateCalendar; | ||
|
||
/** Description text box iframe**/ | ||
@FindBy(xpath = "//iframe[@id='description_ifr']") | ||
public WebElement descriptionTextBoxIframe; | ||
|
||
/** button Save position**/ | ||
@FindBy(xpath = "(//div[@class='text-center']//button[.=' Save '])[1]") | ||
public WebElement buttonSaveNewPosition; | ||
|
||
/** button Remove newly created position**/ | ||
@FindBy(xpath = "(//button[@class='btn btn-sm btn-danger m-0'])[1]") | ||
public WebElement buttonRemoveNewlyCreatedPosition; | ||
|
||
/** button Ok Removing Position Modal**/ | ||
@FindBy(xpath = "(//button[@ng-click='buttonClicked(button)'])[2]") | ||
public WebElement buttonOkRemovingPositionModal; | ||
|
||
/** Position was removed Confirmation Message**/ | ||
@FindBy(xpath = "//p[.='The position and all associated applicant data have been removed from the system.']") | ||
public WebElement confirmationMessagePositionWasRemoved; | ||
|
||
/** Acknowledge Position was removed Confirmation Modal**/ | ||
@FindBy(xpath = "//button[@ng-click='buttonClicked(button)']") | ||
public WebElement acknowledgeConfirmationModalPositionWasRemoved; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
src/test/java/CustomBusiness/CCR/Steps/AdminUserSteps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package CustomBusiness.CCR.Steps; | ||
|
||
import appsCommon.PageInitializers.PageInitializer; | ||
import io.cucumber.java.en.Given; | ||
|
||
public class AdminUserSteps extends PageInitializer { | ||
|
||
@Given("Admin User deletes a newly created vacancy") | ||
public void admin_user_deletes_a_newly_created_vacancy() { | ||
cCRStepsImplementation.adminUserDeletesNewVacancy(); | ||
} | ||
|
||
@Given("Admin User creates a new vacancy") | ||
public void admin_user_creates_a_new_vacancy() { | ||
cCRStepsImplementation.adminUserCreatesNewVacancy(); | ||
} | ||
} |
Oops, something went wrong.