Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions src/org/labkey/test/components/pipeline/PipelineTriggerWizard.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ public PipelineTriggerWizard setParameterFunction(String function)
return this;
}

public boolean isParameterFunctionPresent()
{
showAdvanced();
getWrapper().shortWait().until(ExpectedConditions.visibilityOf(elementCache().addCustomParam));
return elementCache().paramFunctionInput.getComponentElement().isDisplayed();
}

private void showAdvanced()
{
if (!Locator.byClass("advanced-settings").findWhenNeeded(this).isDisplayed())
Expand Down Expand Up @@ -310,9 +317,9 @@ protected class ElementCache extends Component<?>.ElementCache
//details page elements
Input nameInput = new Input(Locator.tagWithName("input", "name").findWhenNeeded(this), getDriver());
Input descriptionInput = new Input(Locator.tagWithName("textarea", "description").findWhenNeeded(this), getDriver());
OptionSelect typeSelect = new OptionSelect(Locator.tagWithName("select", "type").findWhenNeeded(this));
OptionSelect taskSelect = new OptionSelect(Locator.tagWithName("select", "pipelineId").findWhenNeeded(this));
OptionSelect usernameInput = new OptionSelect(Locator.tagWithName("select", "username").findWhenNeeded(this));
OptionSelect<OptionSelect.SelectOption> typeSelect = new OptionSelect<>(Locator.tagWithName("select", "type").findWhenNeeded(this));
OptionSelect<OptionSelect.SelectOption> taskSelect = new OptionSelect<>(Locator.tagWithName("select", "pipelineId").findWhenNeeded(this));
OptionSelect<OptionSelect.SelectOption> usernameInput = new OptionSelect<>(Locator.tagWithName("select", "username").findWhenNeeded(this));
Input assayProviderInput = new Input(Locator.tagWithName("input", "assay provider").findWhenNeeded(this), getDriver());
Checkbox enabledCheckbox = new Checkbox(Locator.tagWithName("input", "enabled").findWhenNeeded(this));
//configuration page elements
Expand All @@ -323,12 +330,12 @@ protected class ElementCache extends Component<?>.ElementCache
Input containerMoveInput = new Input(Locator.tagWithName("input", "moveContainer").findWhenNeeded(this), getDriver());
Input subdirectoryMoveInput = new Input(Locator.tagWithName("input", "moveDirectory").findWhenNeeded(this), getDriver());
Input copyInput = new Input(Locator.tagWithName("input", "copy").findWhenNeeded(this), getDriver());
Input paramFunctionInput = new Input(Locator.tagWithName("textarea", "parameterFunction").findWhenNeeded(this), getDriver());
Input paramFunctionInput = new Input(Locator.id("parameter-function").findWhenNeeded(this), getDriver());
WebElement showAdvanced = Locator.byClass("custom-config__button").withText("Show Advanced Settings").findWhenNeeded(this);
WebElement addCustomParam = Locator.byClass("custom-config__button").withText("Add Custom Parameter").findWhenNeeded(this);
Input assayProtocolInput = new Input(Locator.tagWithName("input", "protocolName").findWhenNeeded(this), getDriver());
Input configurationFileInput = new Input(Locator.name("configFileName").findWhenNeeded(this), getDriver());
//navgiation elements
//navigation elements
WebElement detailsButton = Locator.linkContainingText("Details").findWhenNeeded(this);
WebElement configurationButton = Locator.linkContainingText("Configuration").findWhenNeeded(this);

Expand Down
Loading