Conversation
…e factory on dashboard
|
ci-test |
|
|
||
| public void waitGitUrlField() { | ||
| redrawUiElementsTimeout.until(visibilityOfElementLocated(By.id(Locators.GIT_URL_ID))); | ||
| public void uploadSelectedConfigFile(Path resourcesUploadFile) throws IOException { |
There was a problem hiding this comment.
It's better to have short note about why we should use hiddenUploadInputButton instead of regular uploadFileButton to make the code clear.
| searchWorkspaceField.sendKeys(text); | ||
| public void typeTextToSearchFactoryField(String expectedText) { | ||
| seleniumWebDriverHelper.setValue(searchWorkspaceField, expectedText); | ||
| WaitUtils.sleepQuietly(1); |
There was a problem hiding this comment.
Can we avoid sleeping here?
| private static final String MINIMAL_TEMPLATE_FACTORY_NAME = generate("factoryMin", 4); | ||
| private static final String COMPLETE_TEMPLATE_FACTORY_NAME = generate("factoryComplete", 4); | ||
| private static final String FACTORY_CREATED_FROM_WORKSPACE_NAME = generate("factoryWs", 4); | ||
| private static final String FACTORY_CREATED_FROM_GIT = generate("factoryGit-", 4); |
There was a problem hiding this comment.
FACTORY_CREATED_FROM_GIT > FACTORY_CREATED_FROM_GIT_NAME?
| private static final String COMPLETE_TEMPLATE_FACTORY_NAME = generate("factoryComplete", 4); | ||
| private static final String FACTORY_CREATED_FROM_WORKSPACE_NAME = generate("factoryWs", 4); | ||
| private static final String FACTORY_CREATED_FROM_GIT = generate("factoryGit-", 4); | ||
| private static final String FACTORY_CREATED_FROM_CONFIG = generate("factoryConfig", 4); |
There was a problem hiding this comment.
FACTORY_CREATED_FROM_CONFIG > FACTORY_CREATED_FROM_CONFIG_NAME?
| private static final String FACTORY_CREATED_FROM_WORKSPACE_NAME = generate("factoryWs", 4); | ||
| private static final String FACTORY_CREATED_FROM_GIT = generate("factoryGit-", 4); | ||
| private static final String FACTORY_CREATED_FROM_CONFIG = generate("factoryConfig", 4); | ||
| private static final String FACTORY_CREATED_FROM_USER_JSON = generate("factoryUser", 4); |
There was a problem hiding this comment.
FACTORY_CREATED_FROM_USER_JSON > FACTORY_CREATED_FROM_USER_JSON_NAME?
| workspaceServiceClient.delete(PROJECT_WS_NAME, defaultTestUser.getName()); | ||
| workspaceServiceClient.delete(NO_PROJECT_WS_NAME, defaultTestUser.getName()); | ||
|
|
||
| List<String> listFactory = |
There was a problem hiding this comment.
listFactory > factoryList
|
|
||
| @Test | ||
| public void shouldHandleIncorrectFactoryNames() { | ||
| public void checkHandlingOfNamesFactory() { |
There was a problem hiding this comment.
checkHandlingOfNamesFactory > checkHandlingOfFactoryNames
| } | ||
|
|
||
| @Test | ||
| public void checkEditorTemplateJson() throws Exception { |
There was a problem hiding this comment.
checkEditorTemplateJson > checkEditorOfTemplateJson
| } | ||
|
|
||
| @Test | ||
| public void shouldCreatingFactoryFromWorkspace() { |
There was a problem hiding this comment.
shouldCreatingFactoryFromWorkspace > shouldCreateFactoryFromWorkspace
| } | ||
| } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
empty line at the end is missed
|
ci-test |
| return seleniumWebDriverHelper.waitVisibilityAndGetEnableState(uploadFileButton); | ||
| } | ||
|
|
||
| // we have to use the hidden web-element, because the file is uploaded when we send the command to |
There was a problem hiding this comment.
IMHO it's important to explain why we can't use uploadFileButtn directly, like the follow:
// we can't use 'uploadFileButton' element directly here because it is a DIV which just calls hidden input of file type 'hiddenUploadInputButton'
|
ci-test |
|
ci-test build report: |
What does this PR do?
What issues does this PR fix or reference?
#9841,#9785