Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Correct functional test issue.
Browse files Browse the repository at this point in the history
The version filter may end up with the wrong results if a user is able to change the search query before a previous request for filtering has returned.
  • Loading branch information
carlosmunoz committed Nov 17, 2014
1 parent 47bcd2f commit eac7b6e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -99,13 +99,15 @@ public void versionSearchFiltering() throws Exception {

assertVersions(projectVersionsPage, 1, new String[]{"bravo"});

projectVersionsPage.waitForPageSilence();
projectVersionsPage = projectVersionsPage
.clearVersionSearch()
.enterVersionSearch("charlie")
.waitForDisplayedVersions(0);

assertVersions(projectVersionsPage, 0, new String[]{});

projectVersionsPage.waitForPageSilence();
projectVersionsPage = projectVersionsPage
.clearVersionSearch()
.waitForDisplayedVersions(2);
Expand Down

0 comments on commit eac7b6e

Please sign in to comment.