Skip to content

Commit f7b9095

Browse files
committed
BiologicsReportTest update for error bar options in bar chart
1 parent a5c1ed2 commit f7b9095

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

src/org/labkey/test/components/react/QueryChartDialog.java

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ public List<String> getYAxisSelectionOptions()
206206
return elementCache().reactSelectByLabel("Y Axis").getOptions();
207207
}
208208

209-
/*
210-
Y Axis Aggregate Method is an option for bar chart
211-
*/
212209
public QueryChartDialog selectYAxisAggregateMethod(String option)
213210
{
214211
clickFieldOptions("Y Axis"); // open the popover
@@ -227,11 +224,25 @@ public String getYAxisAggregateMethod()
227224

228225
private ReactSelect getAggregateMethodSelect()
229226
{
230-
// can't use elementCache().reactSelectByLabel because the popover is outside the dialog
227+
// can't use elementCache() because the popover is outside the dialog
231228
Locator loc = Locator.tag("div").withChild(Locator.tagContainingText("label", "Aggregate Method"));
232229
return ReactSelect.finder(getDriver()).find(loc.waitForElement(getDriver(), 1500));
233230
}
234231

232+
private RadioButton getErrorBarsRadio(String value)
233+
{
234+
// can't use elementCache() because the popover is outside the dialog
235+
return RadioButton.RadioButton(Locator.radioButtonByNameAndValue("error-bar-method", value)).find(getDriver());
236+
}
237+
238+
public QueryChartDialog selectYAxisErrorBar(String value)
239+
{
240+
clickFieldOptions("Y Axis"); // open the popover
241+
getErrorBarsRadio(value).check();
242+
Locator.tagWithText("label", "Name *").findElement(this).click(); // close the popover
243+
return this;
244+
}
245+
235246
/*
236247
groupBy is an option for bar charts only
237248
*/

0 commit comments

Comments
 (0)