Skip to content

Selenium: cover Yaml language server functionality by selenium test#10525

Merged
SkorikSergey merged 15 commits intomasterfrom
testYamlLanguageServer
Jul 25, 2018
Merged

Selenium: cover Yaml language server functionality by selenium test#10525
SkorikSergey merged 15 commits intomasterfrom
testYamlLanguageServer

Conversation

@SkorikSergey
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR creates YamlFileEditingTest selenium test that cover the Yaml language server functionality by use cases from Language servers test plan - https://github.com/eclipse/che/wiki/Test-plan-for-checking-Language-servers.

What issues does this PR fix or reference?

#10442

@SkorikSergey SkorikSergey added status/in-progress This issue has been taken by an engineer and is under active development. kind/task Internal things, technical debt, and to-do tasks to be performed. team/che-qe labels Jul 24, 2018
@SkorikSergey SkorikSergey requested a review from vparfonov as a code owner July 24, 2018 12:14
@SkorikSergey SkorikSergey removed the request for review from vparfonov July 24, 2018 12:14
@SkorikSergey
Copy link
Copy Markdown
Contributor Author

ci-test

@riuvshin
Copy link
Copy Markdown
Contributor

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:10525
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@SkorikSergey SkorikSergey added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. and removed status/in-progress This issue has been taken by an engineer and is under active development. labels Jul 25, 2018

public void launchCommentCodeFeature() {
Actions action = actionsFactory.createAction(seleniumWebDriver);
action.keyDown(CONTROL).sendKeys("/").keyUp(CONTROL).perform();
Copy link
Copy Markdown
Contributor

@Ohrimenko1988 Ohrimenko1988 Jul 25, 2018

Choose a reason for hiding this comment

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

You may simplify:

actionsFactory.createAction(seleniumWebDriver)
    .keyDown(CONTROL).sendKeys("/").keyUp(CONTROL).perform();

.click();
}

public void clickOnAddSchemaUrlButton() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please use "waitAndClick" method from "SeleniumWebDriverHelper"

}

public void addSchemaUrl(String schemaName) {
new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use "SeleniumWebDriverHelper"

new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
.until(visibilityOf(addSchemaUrlInput));
addSchemaUrlInput.sendKeys(schemaName);
new WebDriverWait(seleniumWebDriver, LOAD_PAGE_TIMEOUT_SEC)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use "SeleniumWebDriverHelper"

editor.goToPosition(22, 1);
editor.launchCommentCodeFeature();
editor.waitTextIntoEditor(
"# generation: 4\n"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

constant ?

editor.goToPosition(22, 1);
editor.launchCommentCodeFeature();
editor.waitTextIntoEditor(
" generation: 4\n"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

constant ?

@Ohrimenko1988
Copy link
Copy Markdown
Contributor

Don't forget to add the "YamlFileEditingTest" test to the suite xml.

@SkorikSergey SkorikSergey merged commit da843e3 into master Jul 25, 2018
@SkorikSergey SkorikSergey deleted the testYamlLanguageServer branch July 25, 2018 12:07
@SkorikSergey SkorikSergey removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jul 25, 2018
@benoitf benoitf added this to the 6.9.0 milestone Jul 25, 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.

5 participants