-
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
control center framework steps phase2 #19
base: develop
Are you sure you want to change the base?
Conversation
ElementHelper.isElementDisplayed(CdfControlCenterLocators.pipelineDeletedMessage); | ||
} | ||
|
||
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.
Add the comments on each action. Please check the existing pipeline actions for reference.
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 all the comments
} | ||
|
||
/** | ||
* Clicks on the Schema Tab. |
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 Click
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.
changed
} | ||
|
||
/** | ||
* Checks for the displayed Schema 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.
Change to Check, remove 's' in all comments
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.
changed in all comments
CdfControlCenterActions.clickOnSearchTagControlCenter(value); | ||
} | ||
|
||
@Then("Verify user can see the searched tag successfully on the control center 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.
Verify the searched tag is displayed successfully on control center 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.
changed
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.
Hi Priya , We tried looking for the changed line provided by Surya but it is not seen in any of thecdap repo feature files . If it is not changed there then how the scenario will work ?
public void tagCountIncreasesDataset() { | ||
CdfControlCenterActions.tagCountIncreasesDataset(); } | ||
|
||
@Then("Click on the close icon of the added tag and verify that the tag count decreases") |
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.
Click on the close icon of tag added and verify the tag count decreases
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.
changed
CdfControlCenterActions.pressEnterKey(); | ||
} | ||
|
||
@Then("Verify that the tag count of dataset entity increases when the user adds the tag") |
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.
Verify the tag count of dataset entity when user adds the tag
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.
changed
public void clickOnAToZOptionMessage() { | ||
CdfControlCenterActions.clickOnAToZOptionMessage(); } | ||
|
||
@Then("Click on the plus add button of the dataset entity to add the tags successfully") |
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.
Click on the plus button to add the tag for a dataset entity
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.
changed
public void selectDropdownFilterOptionValue(String pluginProperty, String option) { | ||
CdfControlCenterActions.selectFilterDropdownOption(pluginProperty, option); } | ||
|
||
@Then("Verify user is able to see all entities displayed message on the basis of filter selection") |
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.
Verify the all entities message is displayed with the filter selection
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.
changed
public void clickBackTabDatasetEntity() { | ||
CdfControlCenterActions.clickOnBackTabDatasetEntity(); } | ||
|
||
@Then("Click on the close link of the view details page of dataset entity to close the details 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.
Click on close link to close the details page of dataset entity
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.
changed
public void truncateDatasetEntity() { | ||
CdfControlCenterActions.clickOnTruncateDatasetEntity(); } | ||
|
||
@Then("Click on the view details tab of dataset entity page to see the details page of the dataset") |
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.
Click on view details tab of dataset entity
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.
changed
CdfControlCenterActions.deletedDatasetNotPresent(value); | ||
} | ||
|
||
@Then("Click on the truncate icon of the dataset entity and the dataset should get truncated successfully") |
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.
Click truncate and verify the successful truncate of dataset entity
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.
changed
CdfControlCenterActions.navigateDetailsPageDatasetEntity(); | ||
} | ||
|
||
@Then("Click on the delete icon of the dataset entity and the dataset should get deleted successfully") |
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.
Click delete and verify the dataset is deleted successfully
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.
changed
public void clickOnDeleteIconSetPreferences() { | ||
CdfControlCenterActions.clickOnDeleteIconSetPreferences(); } | ||
|
||
@Then("Verify user is able to click on the dataset entity icon to see the details page of the dataset") |
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.
Verify the user is able to click dataset entity icon to navigate to details 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.
changed
CdfControlCenterActions.navigateToControlCenter(); | ||
} | ||
|
||
@Then("Verify user is able to click on the create button to create a pipeline successfully") |
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 -- 'Click on create button to create a pipeline'.
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.
changed
} | ||
|
||
@FindBy(how = How.XPATH, using = "//button[@data-cy='save-prefs-btn']") | ||
public static WebElement clickSaveAndCloseButton; |
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.
remove click and only write saveAndCloseButton
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 it wherever there is click for locators
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.
chamged
public static WebElement clickOnDatasetDeleteIcon; | ||
|
||
@FindBy(how = How.XPATH, using = "(//*[@class='icon-svg icon-cut'])[1]") | ||
public static WebElement clickOnTruncateDatasetEntity; |
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.
remove click from all locators name because click is a action not a element
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.
changed
CdfControlCenterActions.clickOnSearchTagControlCenter(value); | ||
} | ||
|
||
@Then("Verify user can see the searched tag successfully on the control center 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.
Change to ' Verify if user sees the searched tag succesfully in control center'
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.
changed
|
||
@Then("Verify user is navigated to the details page of the dataset entity icon successfully") | ||
public void navigateDetailsPageDatasetEntity() { | ||
|
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.
remove space 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
|
||
@Then("Verify the user is able to set the preferences for the created pipeline in the control center page") | ||
public void setPreferencesForPipeline() { | ||
CdfControlCenterActions.clickOnSetPreferencesIcon(); } |
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.
use formatting and check wheather } should be added in new line
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.
changed
public static WebElement clickOnCloseTagIconDatasetEntity; | ||
|
||
@FindBy(how = How.XPATH, using = "//i[normalize-space()='No tags found. Click to add a new business tag.']") | ||
public static WebElement tagCounDecreasetIconDatasetEntity; |
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.
why this name for the locator . we are just seeing a message in this locator , change it to defaultTagCountMessageDataset or something like that
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.
we are removing the tag , here so we are writing decreease intially it was one and then removing the added
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.
Changed the locator name and included the word message
} | ||
|
||
public static By clickOnTruncateButton() { | ||
return By.xpath("//button[@class='btn btn-primary'][//button[@data-cy='Truncate']]"); |
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 it to //div//button[@data-cy='Truncate']
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.
changed
public static WebElement createButtonControlCenter; | ||
|
||
@FindBy(how = How.XPATH, using = "//span[@class='entity-type'][//span[contains(text(),'Data Pipeline')]]") | ||
public static WebElement dataPipelineControlCenter; |
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 //span[contains(text(),'Data Pipeline')]
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.
this we are checking for the added pipeline in the contol center thats why for more clearance i used class also here.
CdfControlCenterActions.selectSortDropdownOptionValue(option); | ||
} | ||
|
||
@Then("Verify user is able to see the entities sorted by the newest 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 - Verify the entities are sorted by the newest option
CdfControlCenterActions.clickOnNewestOptionMessage(); | ||
} | ||
|
||
@Then("Verify user is able to see the entities sorted by the oldest 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 - Verify the entities are sorted by the oldest option
CdfControlCenterActions.clickOnOldestOptionMessage(); | ||
} | ||
|
||
@Then("Verify user is able to see the entities sorted by the Z to A 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 - Verify the entities are sorted by the Z to A option
CdfControlCenterActions.clickOnZToAOptionMessage(); | ||
} | ||
|
||
@Then("Verify user is able to see the entities sorted by the A to Z 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 - Verify the entities are sorted by the A to Z option
b9eabdf
to
1c08384
Compare
6504d54
to
c63b278
Compare
No description provided.