Selenium: Fix of unexpected fail of "AddOrImportProjectFormTest" selenium test#10118
Selenium: Fix of unexpected fail of "AddOrImportProjectFormTest" selenium test#10118Ohrimenko1988 merged 21 commits intomasterfrom
Conversation
…lving unexpected tests fails
…nd resolving the reason of the test failing
|
ci-test |
| private static final String JDK_SUGGESTION_TITLE = "JDK"; | ||
| private static final String JAVA_SUGGESTION_TITLE = "JAVA"; | ||
| private static final String JAVA_1_8_SUGGESTION_TITLE = "JAVA 1.8"; | ||
| private static final String NAME_WITH_ONE_HUNDRED_SYMBOLS = |
There was a problem hiding this comment.
Actually, not related to your changes, but maybe will be useful for you.
We have utility class for name generation NameGenerator. With it you can generate name with given prefix and length. So for generate workspace name with 100 symbols you can call : NameGenerator.generate("wksp-", 95)
|
ci-test build report: |
…tedStacks)' method
…nd change related data
…n the 'Docker' and 'Openshift' infrastructure
|
ci-test |
|
ci-test build report: |
|
ci-test |
|
ci-test build report: |
|
ci-test |
|
ci-test build report: |
| EXPECTED_SAMPLES_WITH_DESCRIPTIONS.get(CONSOLE_SAMPLE_NAME), | ||
| EXPECTED_CONSOLE_REPOSITORY_URL); | ||
|
|
||
| addOrImportForm.clickOnAddOrImportProjectButton(); |
There was a problem hiding this comment.
it would be better to have separate steps divided by empty rows here from the readability point
| return testWorkspaceServiceClient.getAll().size(); | ||
| } | ||
|
|
||
| private List<Workspaces.WorkspaceListItem> getUnexpectedWorkspaces( |
There was a problem hiding this comment.
these methods would be useful for the other tests and so more suitable for the Workspaces page object class
| return testWorkspaceServiceClient.getAll().size(); | ||
| } | ||
|
|
||
| private void waitOfOpositeCheckboxState(String workspaceName, boolean currentCheckboxState) { |
There was a problem hiding this comment.
waitOnOpositeCheckboxState?
| workspaces.waitWorkspaceCheckboxEnabled(workspaceName); | ||
| } | ||
|
|
||
| private void clickOnUnexpectedWorkspacesCheckboxes(List<String> expectedWorkspaces) { |
There was a problem hiding this comment.
This method would be useful for other tests as well. How about moving it into the Workspaces page object as well?
There was a problem hiding this comment.
Also, it's not quite clear how Unexpected workspaces differ from ordinary one.
| workspaces.waitWorkspaceCheckboxEnabled(javaWorkspaceName); | ||
| workspaces.waitWorkspaceCheckboxEnabled(blankWorkspaceName); | ||
|
|
||
| // for avoid of failing in the multi-thread mode |
There was a problem hiding this comment.
it could be useful for reader to know what kind of fail is clickOnUnexpectedWorkspacesCheckboxes is preventing
|
ci-build |
|
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/4562/ |
What does this PR do?
Fix of unexpected fail of "AddOrImportProjectFormTest" selenium test
What issues does this PR fix or reference?
Issue #10111
Release Notes
Docs PR