-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework steps for Hub phase 2 #17
Conversation
1218570
to
eb04ee8
Compare
public static void clickOnTheSideOptions(String option) { | ||
CdfHubActions.clickOnSideOptions(option); | ||
} | ||
@Then("Click on the {string} option from the list panel") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these both steps referring to the same or you are achieving two different actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, these both steps are referring to two different actions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address review comments
public static void clickOnCloseButton() { | ||
ElementHelper.clickOnElement(CdfHubLocators.closeButton); | ||
} | ||
public static void clickOnSearchTab(String message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide a name like searchedText instead of message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
} | ||
ElementHelper.isElementDisplayed(CdfHubLocators.locatePlugin(pluginPropertyDataCyAttribute)); | ||
} | ||
public static void clickOnSideOptions(String option) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide a specific name which can be understandable .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
CdfHubLocators.locateDropdownListItem( | ||
optionFromPluginPropertiesFile)); | ||
} | ||
public static void clickOnSearchTabControlCenter(String message) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change message to searchedText/searchedElement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
if (pluginPropertyDataCyAttribute == null) { | ||
pluginPropertyDataCyAttribute = pluginProperty; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is space needed here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
ElementHelper.selectDropdownOption(CdfPluginPropertiesLocators | ||
.locatePropertyElement(pluginPropertyDataCyAttribute), | ||
CdfHubLocators.locateDropdownListItem(option)); | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for void methods we are not returning anything , why this return is provided ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
public static void clickOnTheOption(String button) { | ||
CdfHubActions.clickOnButton(button); | ||
} | ||
@Then("Verify that {string} pipeline is saved in Drafts") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to drafts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
public static WebElement locatePlugin(String pluginName) { | ||
return SeleniumDriver.getDriver() | ||
.findElement(By.xpath("//*[contains(text(),'" + pluginName + "')]")); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add space after each methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line number 58,62,65,68,71,74
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@Then("Click on Hub Menu") | ||
public static void openHub() { | ||
CdfHubActions.clickOnHub(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add space post each actions is declared . line number 39,43,47 and so on ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
public static void clickOnHub() { | ||
ElementHelper.clickOnElement(CdfHubLocators.hubPage); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add space post this line and post subsequesnt closing lines for all other methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
public static void clickOnDeploy() { | ||
ElementHelper.clickOnElement(CdfHubLocators.deployButton); | ||
} | ||
public static void clickOnFinish() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide some info in comment before starting of actions that what is doing .
/**
- Click on Finish button to deploy the plugin Or create the pipline .
*/
Please provide this type of info in comments for each and every actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -41,6 +41,10 @@ public static void openHub() { | |||
public static void openPlugin(String pluginName) { | |||
CdfHubActions.clickOnPlugin(pluginName); | |||
} | |||
@Then("Click on {string} pipeline") | |||
public static void openPipeline(String pipelineName) { | |||
CdfHubActions.clickOnPlugin(pipelineName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a plugin or pipeline? Please use proper naming.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
CdfHubActions.clickOnHamburgerMenu(); | ||
} | ||
@Then("Click on the {string} from the left panel") | ||
public static void clickOnTheSideOptions(String option) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its hamburger menu option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not for hamburger menu it is for the options inside hamburger so i have change it to clickOnOptionFromHamburgerMenu
} | ||
@Then("Click on the {string} from the left panel") | ||
public static void clickOnTheSideOptions(String option) { | ||
CdfHubActions.clickOnSideOptions(option); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change as above clickOnHamburgerMenuOption
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
/** | ||
|
||
Click on Close button to close the hub page . | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should not be any space in 89 and * should be present before start of sentence
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed done.
ddb2ae0
to
c900bd1
Compare
d8e96a1
to
f10d1a5
Compare
f10d1a5
to
d227265
Compare
No description provided.