-
Notifications
You must be signed in to change notification settings - Fork 9
Update tests that relied on obsolete actions. #3001
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
base: develop
Are you sure you want to change the base?
Changes from all commits
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 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,10 +23,10 @@ | |||||||||||
| import org.labkey.test.BaseWebDriverTest; | ||||||||||||
| import org.labkey.test.Locator; | ||||||||||||
| import org.labkey.test.TestFileUtils; | ||||||||||||
| import org.labkey.test.WebTestHelper; | ||||||||||||
| import org.labkey.test.categories.Charting; | ||||||||||||
| import org.labkey.test.categories.Daily; | ||||||||||||
| import org.labkey.test.categories.Reports; | ||||||||||||
| import org.labkey.test.components.CustomizeView; | ||||||||||||
| import org.labkey.test.util.DataRegionTable; | ||||||||||||
| import org.labkey.test.util.Ext4Helper; | ||||||||||||
| import org.labkey.test.util.PortalHelper; | ||||||||||||
|
|
@@ -35,7 +35,6 @@ | |||||||||||
| import java.io.File; | ||||||||||||
| import java.util.ArrayList; | ||||||||||||
| import java.util.List; | ||||||||||||
| import java.util.Map; | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * This test imports a folder archive that has 2 subfolders (a date based study and a visit based study) which have been | ||||||||||||
|
|
@@ -316,13 +315,24 @@ public void verifyMaskedPtidOnPublishStudy() | |||||||||||
| { | ||||||||||||
| clickTab("Clinical and Assay Data"); | ||||||||||||
| waitAndClickAndWait(Locator.linkWithText(chartInfo.getName())); | ||||||||||||
| beginAt(WebTestHelper.buildURL("reports", | ||||||||||||
| getProjectName() + "/" + VISIT_STUDY_FOLDER_NAME + "/" + publishFolderName, | ||||||||||||
| "reportInfo", Map.of("reportId", getUrlParam("reportId")))); | ||||||||||||
| waitForText("Report Debug Information"); | ||||||||||||
| } | ||||||||||||
|
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. The for-loop above (over VISIT_CHARTS) no longer does anything interesting. Might as well remove it. |
||||||||||||
|
|
||||||||||||
| // verify the report descriptor XML does not contain the masked ptid | ||||||||||||
| goToSchemaBrowser(); | ||||||||||||
| DataRegionTable drt = viewQueryData("core", "Reports"); | ||||||||||||
| CustomizeView customizeView = drt.openCustomizeGrid(); | ||||||||||||
| customizeView.addColumn("DescriptorXML"); | ||||||||||||
| customizeView.applyCustomView(); | ||||||||||||
|
|
||||||||||||
| drt = new DataRegionTable("query", getDriver()); | ||||||||||||
| int xmlIdx = drt.getColumnIndex("DescriptorXML"); | ||||||||||||
|
Comment on lines
+327
to
+328
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. Not sure how many reports get created by this test but you might want to increase the grid size to make sure nothing is hiding on later pages.
Suggested change
|
||||||||||||
|
|
||||||||||||
| for (int row=0; row < drt.getDataRowCount(); row++) | ||||||||||||
| { | ||||||||||||
| String descriptor = drt.getDataAsText(row, xmlIdx); | ||||||||||||
| for (String origMouseId : origMouseIds) | ||||||||||||
| { | ||||||||||||
| assertTextNotPresent(origMouseId); | ||||||||||||
| Assert.assertFalse("Unexpected masked ptid in report descriptor : " + descriptor, descriptor.contains(origMouseId)); | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
| } | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the page class returned by
clickInsertNewRowinstead of hard-coded locators.