Skip to content

Commit

Permalink
Fix GridPanelViewTest.testShowAllLabelEditAndUndo (#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
XingY authored Dec 18, 2024
1 parent fc4529a commit b771bb4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/org/labkey/test/tests/component/GridPanelViewTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,8 @@ public void testShowAllLabelEditAndUndo()
customizeModal.setShowAll(false);
}

String materialIDField = "Material Source Id";
String materialIDField = "MaterialSourceId";
String materialIDFieldName = "Material Source Id";
log(String.format("Validate that field '%s' is not visible before checking 'Show all'.", materialIDField));

List<String> actualFields = customizeModal.getAvailableFields();
Expand All @@ -983,8 +984,8 @@ public void testShowAllLabelEditAndUndo()

actualFields = customizeModal.getAvailableFields();

checker().verifyTrue(String.format("Field '%s' is not present in 'Available Fields' panel, it should be.", materialIDField),
actualFields.contains(materialIDField));
checker().verifyTrue(String.format("Field '%s' is not present in 'Available Fields' panel, it should be.", materialIDFieldName),
actualFields.contains(materialIDFieldName));

String materialNameField = "Name";
log(String.format("Select the '%s' field under '%s' and add it to the grid.", materialNameField, materialIDField));
Expand Down

0 comments on commit b771bb4

Please sign in to comment.