Skip to content

Commit

Permalink
Merge pull request #259 from cloudsufi/addingRuntimeDropdownStep
Browse files Browse the repository at this point in the history
Adding Runtime Dropdown Step
  • Loading branch information
psainics authored Dec 19, 2024
2 parents cf245c4 + affdc9e commit 041bc78
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ public static void runClick() {
ElementHelper.clickOnElement(CdfPipelineRunLocators.run);
}

/**
* Click on the Runtime Dropdown button
*/
public static void runtimeDropdownClick() {
ElementHelper.clickOnElement(CdfPipelineRunLocators.runDropdownButton);
}

/**
* Click on the Run button inside 'Runtime Arguments' dialog
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public class CdfPipelineRunLocators {
@FindBy(xpath = "//button[@data-cy='pipeline-run-btn']")
public static WebElement run;

@FindBy(xpath = "//*[@data-testid='arrow-btn-container']")
public static WebElement runDropdownButton;

@FindBy(xpath = "//div[@data-cy='pipeline-configure-btn']//*[contains(@class, 'configure-icon')]")
public static WebElement configure;

Expand Down
5 changes: 5 additions & 0 deletions src/main/java/stepsdesign/PipelineSteps.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,11 @@ public void runThePipelineInRuntime() {
CdfPipelineRunAction.runClick();
}

@Then("Click on the Runtime Arguments Dropdown button")
public void clickOnRuntimeArgumentsDropdownButton() {
CdfPipelineRunAction.runtimeDropdownClick();
}

@Then("Run the Pipeline in Runtime with runtime arguments")
public void runThePipelineInRuntimeWithRuntimeArguments() {
CdfPipelineRunAction.clickDeployedConfigRunButton();
Expand Down

0 comments on commit 041bc78

Please sign in to comment.