-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
"(" + 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 { |
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 it really about link to ONE macro? If so, lets fix enum and constant names to refer to ONE macro.
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.
"(" + Locators.ORION_ACTIVE_EDITOR_CONTAINER_XPATH + ")[1]"; | ||
public static final String PREVIEW_URL_EDITOR = | ||
"(" + Locators.ORION_ACTIVE_EDITOR_CONTAINER_XPATH + ")[2]"; | ||
public enum CommandsEditorType { |
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.
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 { |
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.
IMHO this enum describes locators, so the name CommandsMacrosLinkLocator
is more precise, as for me.
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