Skip to content

Commit

Permalink
fix for ChartTypeDialog check in hasTrendlineOption
Browse files Browse the repository at this point in the history
  • Loading branch information
cnathe committed Dec 3, 2024
1 parent f39ad5b commit 8ace181
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/labkey/test/components/ChartTypeDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ public ChartTypeDialog setSeries(String columnName)

public boolean hasTrendlineOption()
{
return getWrapper().isElementVisible(Ext4Helper.Locators.formItemWithInputNamed("trendlineType"));
Locator loc = Ext4Helper.Locators.formItemWithInputNamed("trendlineType");
if (getWrapper().isElementPresent(loc))
return getWrapper().isElementVisible(loc);
return false;
}

public List<String> getTrendlineOptions()
Expand Down

0 comments on commit 8ace181

Please sign in to comment.