Standardization of "che" test automation framework classes #22184
Labels
area/qe
kind/task
Internal things, technical debt, and to-do tasks to be performed.
severity/P2
Has a minor but important impact to the usage or development of the system.
Is your task related to a problem? Please describe
In "che/tests/e2e" there a lot of classes as page objects or utils. The same type of classes can have different structure, for example:
Class declaration:
Class export:
export class DriverHelper
Public methods:
Private class fields:
private static readonly KUBERNETES_API_URL: string = 'api/kubernetes/namespace'
readonly attempts: number = TestConstants.TS_SELENIUM_WORKSPACE_STATUS_ATTEMPTS;
- can be private and staticprivate static latestWorkspace: string = '';
why static?Locators:
private static readonly RUN_BUTTON_CSS: string = '#run-workspace-button[che-button-title=\'Run\']';
static readonly FACTORY_URL_LOCATOR: By = By.xpath(
//input[@id="git-repo-url"]);
private readonly OPEN_SHIFT_LOGIN_LANDING_PAGE_LOCATOR: string = '//div[@class='panel-login'];'
So team/contribution conventions on using one or the other should be specified.
Describe the solution you'd like
As a sample:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: