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

Selenium: Rework static classes "CommandsEditorType" and "CommandsMacrosLinkType" to enumerations #9256

Merged
merged 6 commits into from
Mar 27, 2018

Conversation

Ohrimenko1988
Copy link
Contributor

What does this PR do?

Rework static classes "CommandsEditorType" and "CommandsMacrosLinkType" to enumerations

What issues does this PR fix or reference?

Issue: #9253

Release Notes

Docs PR

@benoitf benoitf added kind/task Internal things, technical debt, and to-do tasks to be performed. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Mar 27, 2018
"(" + ACTIVE_EDITOR_ENTRY_POINT + "//a[@id='gwt-debug-link-explore_macros'])[1]";
public static final String PREVIEW_MACROS_LINK =
"(" + ACTIVE_EDITOR_ENTRY_POINT + "//a[@id='gwt-debug-link-explore_macros'])[2]";
public enum CommandsMacrosLinkType {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it really about link to ONE macro? If so, lets fix enum and constant names to refer to ONE macro.

Copy link
Contributor Author

@Ohrimenko1988 Ohrimenko1988 Mar 27, 2018

Choose a reason for hiding this comment

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

eclipse che wksp o3gh

eclipse che wksp o3gh 1

I think we should leave this enum name

"(" + Locators.ORION_ACTIVE_EDITOR_CONTAINER_XPATH + ")[1]";
public static final String PREVIEW_URL_EDITOR =
"(" + Locators.ORION_ACTIVE_EDITOR_CONTAINER_XPATH + ")[2]";
public enum CommandsEditorType {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO this enum describes locators, so the name CommandsEditorLocator is more precise, as for me.

"(" + ACTIVE_EDITOR_ENTRY_POINT + "//a[@id='gwt-debug-link-explore_macros'])[1]";
public static final String PREVIEW_MACROS_LINK =
"(" + ACTIVE_EDITOR_ENTRY_POINT + "//a[@id='gwt-debug-link-explore_macros'])[2]";
public enum CommandsMacrosLinkType {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO this enum describes locators, so the name CommandsMacrosLinkLocator is more precise, as for me.

@Ohrimenko1988 Ohrimenko1988 merged commit bc9786d into master Mar 27, 2018
@Ohrimenko1988 Ohrimenko1988 deleted the selen-commandsEditor-constants branch March 27, 2018 11:48
@Ohrimenko1988 Ohrimenko1988 removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Mar 27, 2018
@benoitf benoitf added this to the 6.3.0 milestone Mar 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/task Internal things, technical debt, and to-do tasks to be performed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants