Skip to content

Correct the 'GitPullTest' related to unexpected stale element reference#11389

Merged
artaleks9 merged 3 commits intomasterfrom
che#11223
Sep 28, 2018
Merged

Correct the 'GitPullTest' related to unexpected stale element reference#11389
artaleks9 merged 3 commits intomasterfrom
che#11223

Conversation

@artaleks9
Copy link
Copy Markdown
Contributor

What does this PR do?

  • Correct the selenium test GitPullTest related to unexpected 'stale element reference' when the test runs on CI
  • We check that the expected text is not present in the editor after remove it on GitHub side, and performing git pull.
    In fact we delete the folder with test files and as result after git pull these files are deleted from the editor and the project explorer.
    On my opinion, we should check that test files are really delete from editor (the tab file names are not present), and to exclude the check of text unpresent in the editor.

What issues does this PR fix or reference?

#11223

@artaleks9 artaleks9 added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/task Internal things, technical debt, and to-do tasks to be performed. team/che-qe labels Sep 27, 2018
prepareFilesForTest(jsFileName);
prepareFilesForTest(htmlFileName);
prepareFilesForTest(folderWithPlainFilesPath + "/" + readmeTxtFileName);
prepareFilesForTest(folderWithPlainFilesPath + "/README.md");
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.

Let's create the constant for that name as well:

private final static String README_MD_FILE_NAME = "README.md";

Copy link
Copy Markdown
Contributor Author

@artaleks9 artaleks9 Sep 28, 2018

Choose a reason for hiding this comment

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

OK, I'll correct, but may be there is sense to do it as a local variable?
That to keep some uniformity in the test.

String readmeMdFileName = "README.md";

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.

Okay.

@artaleks9 artaleks9 merged commit 61ec44d into master Sep 28, 2018
@artaleks9 artaleks9 deleted the che#11223 branch September 28, 2018 12:47
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Sep 28, 2018
@benoitf benoitf added this to the 6.12.0 milestone Sep 28, 2018
nickboldt pushed a commit to nickboldt/che that referenced this pull request Oct 3, 2018
…ce (eclipse-che#11389)

* Selenium: Correct the 'GitPullTest' related to unexpected stale reference
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.

4 participants