Skip to content
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

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Framework steps for Hub phase 2 #17

merged 1 commit into from
Dec 11, 2023

Conversation

AnkitCLI
Copy link
Collaborator

@AnkitCLI AnkitCLI commented Nov 8, 2023

No description provided.

@AnkitCLI AnkitCLI force-pushed the e2e-hub-tests-2 branch 2 times, most recently from 1218570 to eb04ee8 Compare November 10, 2023 09:18
public static void clickOnTheSideOptions(String option) {
CdfHubActions.clickOnSideOptions(option);
}
@Then("Click on the {string} option from the list panel")
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

@rahuldash171 rahuldash171 left a 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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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) {
Copy link
Collaborator

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 .

Copy link
Collaborator Author

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) {
Copy link
Collaborator

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

Copy link
Collaborator Author

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;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is space needed here ?

Copy link
Collaborator Author

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;
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to drafts

Copy link
Collaborator Author

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 + "')]"));
}
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator Author

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();
}
Copy link
Collaborator

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 ..

Copy link
Collaborator Author

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);
}
Copy link
Collaborator

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

Copy link
Collaborator Author

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() {
Copy link
Collaborator

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

Copy link
Collaborator Author

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);
Copy link
Collaborator

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.

Copy link
Collaborator Author

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) {
Copy link
Collaborator

@itsmekumari itsmekumari Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its hamburger menu option

Copy link
Collaborator Author

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);
Copy link
Collaborator

@itsmekumari itsmekumari Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change as above clickOnHamburgerMenuOption

Copy link
Collaborator Author

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 .
*/
Copy link
Collaborator

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed done.

@AnkitCLI AnkitCLI force-pushed the e2e-hub-tests-2 branch 2 times, most recently from d8e96a1 to f10d1a5 Compare December 1, 2023 06:00
@AnkitCLI AnkitCLI merged commit e7acf89 into develop Dec 11, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants