Skip to content

Commit

Permalink
Merge pull request #364 from CBIIT/jains18
Browse files Browse the repository at this point in the history
Fanconi : Participant Details page assertion in NativeView
  • Loading branch information
Mariachaudhry authored Jan 10, 2025
2 parents dc3f140 + abda494 commit e2fdb53
Show file tree
Hide file tree
Showing 7 changed files with 1,450 additions and 1,742 deletions.
12 changes: 6 additions & 6 deletions src/test/java/APPS_COMMON/PageInitializers/PageInitializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import ANALYSIS_TOOLS.mSigPortal.pages.*;
import ANALYSIS_TOOLS.scAtlas.pages.SCAtlasCohortsPage;
import ANALYSIS_TOOLS.scAtlas.pages.SCAtlasHomePage;
import CHARMS.scenariosData.*;
import CUSTOM_BUSINESS.CCR.pages.*;
import CUSTOM_BUSINESS.CCR.stepsImplementation.*;
import CUSTOM_BUSINESS.DCEG.pages.*;
Expand All @@ -49,7 +50,6 @@
import CHARMS.constants.*;
import CHARMS.nativeView.pages.CHARMSParticipantDetailsPage;
import CHARMS.pages.*;
import CHARMS.scenariosData.*;
import CHARMS.stepsImplementation.*;
import CHARMS.stepsImplementation.RASStudy.*;
import DEPRECATED.COVIDCode.Pages.*;
Expand Down Expand Up @@ -154,11 +154,11 @@ public class PageInitializer extends WebDriverUtils {
public static FHQSubmissionPage fHQSubmissionPage;
public static FHQSubmissionStepsImpl fHQSubmissionStepsImpl;
public static FHQConstants fHQConstants;
public static FHQ_TestDataManager fHQ_TestDataManager;
public static RAS_Screener_TestDataManager ras_Screener_TestDataManager;
public static RAS_NV_Consent_Record_TestDataManager ras_NV_Consent_Record_TestDataManager;
public static RAS_Survey_TestDataManager ras_Survey_TestDataManager;
public static IIQ_TestDataManager iiq_TestDataManager;
public static CHARMS.scenariosData.FHQ_TestDataManager fHQ_TestDataManager;
public static CHARMS.scenariosData.RAS_Screener_TestDataManager ras_Screener_TestDataManager;
public static CHARMS.scenariosData.RAS_NV_Consent_Record_TestDataManager ras_NV_Consent_Record_TestDataManager;
public static CHARMS.scenariosData.RAS_Survey_TestDataManager ras_Survey_TestDataManager;
public static CHARMS.scenariosData.IIQ_TestDataManager iiq_TestDataManager;
public static ParticipantDetailsPage participantDetailsPage;
public static ReferralTablePage referralTablePage;
public static FanconiEligibilityQuestionnairePage fanconiEligibilityQuestionnairePage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
Feature: Fanconi Eligibility Questionnaire-Screener on the Fanconi Longitudinal Cohort Study Portal
Description:This feature file has different submissions and assertion scenarios for the Fanconi Eligibility Questionnaire by the proband and the legal guardian (Proxy)

@jains @FanconiSubmission @In-progress @selenium
Scenario: Participant fills the Fanconi screener for all different scenarios
Given All scenarios are submitted

@jains @FanconiSubmission @CP2-1949 @Fanconi_Regression @selenium @Smoke
Scenario: Participant fills the Fanconi screener by the Proband for scenario 1
Given run the Fanconi reset script to reset the accounts
Expand Down Expand Up @@ -96,10 +92,16 @@ Feature: Fanconi Eligibility Questionnaire-Screener on the Fanconi Longitudinal
Then fills the Fanconi Eligibility Questionnaire form for scenario10
Then clicks the submit button

@jains @FanconiSubmission @Fanconi_Regression @selenium
Scenario: Participant fills the Fanconi screener for all different scenarios
Given run the Fanconi reset script to reset the accounts
Given All scenarios are submitted

@jains @FanconiAssertion @CP2-1995 @Fanconi_Regression @selenium @Smoke
Scenario: Participant Details Page Assertions for all the scenarios in ServiceNow
Given the study nurse log in Native View
Then data submitted via the Fanconi Eligibility Questionnaire is verified in Participant Details page for all scenarios
Then data submitted via the Fanconi Eligibility Questionnaire is verified in Fanconi Study Screener page for all scenarios

@jains @FanconiAssertion @CP2-1995 @Fanconi_Regression @selenium
Scenario: Participant Details Page Assertions for one scenario at a time in ServiceNow
Expand Down Expand Up @@ -130,4 +132,4 @@ Feature: Fanconi Eligibility Questionnaire-Screener on the Fanconi Longitudinal
@jains @FanconiAssertion @CP2-1995 @Fanconi_Regression @selenium
Scenario: Fanconi Study Screener page Assertions for one scenario at a time in ServiceNow
Given the study nurse log in Native View and go to Study Screener page
Then data submitted is verified in Fanconi Study page
Then data submitted is verified in Fanconi Study page
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ public WebElement dynamicLocatorUsingNormalizeSpaceInSpan(String text) {
@FindBy(xpath = "(//input[@aria-label='Subject ID'])[1]")
public WebElement nVParticipantSubjectID;

/* Participant--> Search column: name TextBox */
@FindBy(xpath = "(//input[@aria-label='Search column: name'])[1]")
public WebElement nVParticipantSearchColumnName;

/* Participant--> Name TextBox */
@FindBy(xpath = "(//input[@aria-label='Name'])[1]")
public WebElement nVParticipantName;
Expand Down Expand Up @@ -202,10 +206,23 @@ public WebElement dynamicLocatorUsingNormalizeSpaceInSpan(String text) {
@FindBy(xpath = "(//select[@name='x_naci_family_coho_family_history_details.adopted'])[1]")
public WebElement nVParticipantDemographicsTabIsTheParticipantAdopted;

/* DEMOGRAPHICS tab-> Vital Status DropDown */
@FindBy(xpath = "(//select[@id='x_naci_family_coho_family_history_details.person_alive'])[1]")
public WebElement nVParticipantDemographicsTabVitalStatus;


/* DEMOGRAPHICS tab-> Date of Birth iFrame */
@FindBy(xpath = "(//input[@name='x_naci_family_coho_family_history_details.date_of_birth_month_day_year'])[1]")
public WebElement nVParticipantDemographicsTabDOB;

/* DEMOGRAPHICS tab-> Date of Death iFrame */
@FindBy(xpath = "(//input[@id='x_naci_family_coho_family_history_details.date_of_death'])[1]")
public WebElement nVParticipantDemographicsTabDOD;

/* DEMOGRAPHICS tab-> Age iFrame */
@FindBy(xpath = "(//span[@data-html='false'][normalize-space()='Age'])[1]")
public WebElement nVParticipantDemographicsTabAge;

/*
* DEMOGRAPHICS tab-> If Date of Birth is unkown, is this person 18 years old or
* older ? DropDown
Expand All @@ -231,8 +248,16 @@ public WebElement dynamicLocatorUsingNormalizeSpaceInSpan(String text) {
@FindBy(xpath = "(//select[contains(@name,'x_naci_family_coho_family_history_details.proxy_required')])[1]")
public WebElement nVParticipantContactInfoTabDoesParticipantNeedLegalRepresentation;

/* CONTACT INFO tab-> Are you the legal guardian of this person? DropDown */
@FindBy(xpath = "(//select[@name='x_naci_family_coho_family_history_details.legal_guardian'])[1]")
/* CONTACT INFO tab-> Person who filled the screener */
@FindBy(xpath = "(//input[@id='x_naci_family_coho_family_history_details.legal_representative_name'])[1]")
public WebElement nVParticipantContactInfoTabPersonWhoFilledTheScreener;

/* CONTACT INFO tab-> What is your relationship to the participant?*/
@FindBy(xpath = "(//select[@id='x_naci_family_coho_family_history_details.relationship'])[1]")
public WebElement nVParticipantContactInfoTabWhatIsYourRelationshipToTheParticipant;

/* CONTACT INFO tab->Are you the legal guardian of this person?*/
@FindBy(xpath = "(//select[@id='x_naci_family_coho_family_history_details.legal_guardian'])[1]")
public WebElement nVParticipantContactInfoTabAreYouTheLegalGuardianOfThisPerson;

/* CONTACT INFO tab-> Legal Representative Name TextBox */
Expand Down Expand Up @@ -274,6 +299,14 @@ public WebElement dynamicLocatorUsingNormalizeSpaceInSpan(String text) {
@FindBy(xpath = "(//input[@id='x_naci_family_coho_family_history_details.email_address'])[1]")
public WebElement nVParticipantContactInfoTabEmail;

/* CONTACT INFO tab-> Contact Registration Email TextBox */
@FindBy(xpath = "(//input[@id='sys_readonly.x_naci_family_coho_family_history_details.user_record.email'])[1]")
public WebElement nVParticipantContactInfoTabRegistrationEmail;

/* CONTACT INFO tab-> Contact Proxy Email TextBox */
@FindBy(xpath = "(//input[@id='sys_readonly.x_naci_family_coho_family_history_details.user_record.email'])[1]")
public WebElement nVParticipantContactInfoTabProxyEmail;

/* CONTACT INFO tab-> Contact Home Phone TextBox */
@FindBy(xpath = "(//input[@name='x_naci_family_coho_family_history_details.phone'])[1]")
public WebElement nVParticipantContactInfoTabHomePhone;
Expand Down
Loading

0 comments on commit e2fdb53

Please sign in to comment.