-
Notifications
You must be signed in to change notification settings - Fork 0
Link crawler test fixes #855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
58ebcf4
ec426d0
f3fee71
27aa04d
09522bb
9fbbe80
b77a883
f74cff7
5621ce2
7f4211f
7909319
e43959e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,6 +248,12 @@ public static void doSetup() throws Exception | |
|
|
||
| initTest.updateEHRFormFrameworkTypes(); | ||
|
|
||
| initTest.addWnprcEHRWebparts(); | ||
| initTest._containerHelper.createSubfolder(EHR_FOLDER_PATH, "About The EHR", "Collaboration"); | ||
| initTest._containerHelper.createSubfolder(EHR_FOLDER_PATH, "Backups", "Collaboration"); | ||
| initTest._containerHelper.createSubfolder(EHR_FOLDER_PATH + "/Backups", "Gems Backups", "Collaboration"); | ||
| initTest.addWNPRCGroups(); | ||
|
|
||
| initTest.createEHRLinkedSchema("/" + EHR_FOLDER_PATH); // Needed for query validation | ||
| initTest._schemaHelper.createLinkedSchema("/" + EHR_FOLDER_PATH, "PublicSOPs", "/" + EHR_FOLDER_PATH, null, "lists", null, null); | ||
|
|
||
|
|
@@ -281,7 +287,9 @@ public static void doSetup() throws Exception | |
|
|
||
| initTest.checkUpdateProgramIncomeAccount(); | ||
|
|
||
| initTest.notificationRevampSetup(); //TODO: to uncomment, fix issue mentioned here - https://www.labkey.org/WNPRC/support%20tickets/issues-details.view?issueId=51256 | ||
| initTest.notificationRevampSetup(); | ||
|
|
||
| initTest.populateAnimalRequestTableLookups(); | ||
| } | ||
|
|
||
| private void billingSetup() throws Exception | ||
|
|
@@ -389,6 +397,40 @@ private void addProcedureQueries() throws IOException, CommandException | |
| log("Inserted " + numRows + " into ehr_billing.procedureQueryChargeIdAssoc table."); | ||
| } | ||
|
|
||
| @Override | ||
| protected List<String> skipLinksForCrawling() | ||
| { | ||
| List<String> links = new ArrayList<>(super.skipLinksForCrawling()); | ||
| links.add("wnprc_ehr-PerDiems.view"); | ||
| links.add("wnprc_ehr-WaterCalendar.view"); | ||
|
Comment on lines
+406
to
+407
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain why these actions are skipped
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| links.add("wnprc_ehr-NecropsySchedule.view"); | ||
| return links; | ||
| } | ||
|
|
||
| @Override | ||
| protected List<String> skipLinksForValidation() | ||
| { | ||
| List<String> links = new ArrayList<>(super.skipLinksForValidation()); | ||
| links.add("query-executeQuery.view?query.queryName=Current%20Colony%20Condition&schemaName=study"); | ||
| links.add("query-executeQuery.view?schemaName=col_dump&query.queryName=mysql_check"); | ||
| // links.add("ehr-dataEntryFormDetails.view?formtype=Enter%20Water%20Orders&taskid="); | ||
| links.add("wnprc_ehr-UnscheduleBCReports.view"); | ||
| links.add("wnprc_ehr-ScheduleBCReports.view"); | ||
| links.add("Documentation/Admin/project-begin.view"); | ||
| links.add("Documentation/Data Management/project-begin.view"); | ||
| links.add("Development Notes/project-begin.view"); | ||
| links.add("/Logs/project-begin.view"); | ||
|
Comment on lines
+413
to
+429
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please explain why these actions are skipped
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| return links; | ||
| } | ||
|
|
||
| private void addWNPRCGroups() | ||
| { | ||
| _permissionsHelper.createGlobalPermissionsGroup("veterinarians (LDAP)"); | ||
| _permissionsHelper.createGlobalPermissionsGroup("compliance (LDAP)"); | ||
| _permissionsHelper.createGlobalPermissionsGroup("animalcare (LDAP)"); | ||
| _permissionsHelper.createGlobalPermissionsGroup("pathology (LDAP)"); | ||
| } | ||
|
|
||
| @LogMethod | ||
| @Override | ||
| protected void createTestSubjects() throws Exception | ||
|
|
@@ -655,6 +697,18 @@ private void addFinanceRelatedWebParts(String container) | |
| (new PortalHelper(this)).addWebPart("WNPRC Finance Admin"); | ||
| } | ||
|
|
||
| private void addWnprcEHRWebparts() | ||
| { | ||
| log("Add WNPRC EHR Webparts."); | ||
|
|
||
| //enable Page Admin Mode | ||
| new SiteNavBar(getDriver()).enterPageAdminMode(); | ||
|
|
||
| (new PortalHelper(this)).removeAllWebParts(); | ||
| (new PortalHelper(this)).addWebPart("WNPRC Electronic Health Record "); | ||
| (new PortalHelper(this)).addWebPart("wnprcUnits"); | ||
|
labkey-martyp marked this conversation as resolved.
Outdated
|
||
| } | ||
|
|
||
| private void addBillingPublicWebParts() | ||
| { | ||
| log("Add WNPRC Billing PI Portal Section to PI Portal page."); | ||
|
|
@@ -3185,6 +3239,7 @@ public void populateLookupValsDirect(String setName, String valName, String val) | |
|
|
||
| public void populateAnimalRequestTableLookups() throws IOException, CommandException | ||
| { | ||
| goToEHRFolder(); | ||
|
|
||
| populateLookupSet("animal_requests_sex"); | ||
| populateLookupVals("animal_requests_sex", "value", "M"); | ||
|
|
@@ -3317,7 +3372,7 @@ public void testAnimalRequestFormSubmit() throws IOException, CommandException | |
| DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); | ||
| String formattedDate = currentDate.format(formatter); | ||
| goToEHRFolder(); | ||
| populateAnimalRequestTableLookups(); | ||
|
|
||
| navigateToAnimalRequestForm(); | ||
| waitForText("Comments:"); | ||
| //it's a timing issue. we have to wait until the form is loaded for it to be clickable. | ||
|
|
@@ -3425,6 +3480,7 @@ public void updateProgramIncomeAccountWithValidPermissions() throws UnhandledAle | |
| fillAnInputByName("newCreditToAccountField", "testString"); | ||
| click(Locator.tagWithId("button","updateCreditToAccountButton")); | ||
|
|
||
| sleep(2000); | ||
| //Verifies the value has been changed, then continues. If value has not been changed, the test fails here. | ||
| assertEquals("Updated Program Income Account with invalid permissions.", "testString", Locator.id("ctaCell1").findElement(getDriver()).getText()); | ||
|
labkey-martyp marked this conversation as resolved.
Outdated
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.