File tree Expand file tree Collapse file tree
src/org/labkey/test/components/react Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments