.signIn("translator", "translator")
.loggedInAs())
.isEqualTo("translator")
.as("Login as translator");
ProjectVersionsPage projectVersionsPage = new ProjectWorkFlow()
.goToProjectByName(projectName)
.waitForDisplayedVersions(2);
assertVersions(projectVersionsPage, 2, new String[]{"bravo", "alpha"});
projectVersionsPage = projectVersionsPage
.clickSearchIcon()
.enterVersionSearch("alpha")
.waitForDisplayedVersions(1);
assertVersions(projectVersionsPage, 1, new String[]{"alpha"});
projectVersionsPage = projectVersionsPage
.clearVersionSearch()
.waitForDisplayedVersions(2);
assertVersions(projectVersionsPage, 2, new String[]{"bravo", "alpha"});
projectVersionsPage = projectVersionsPage
.enterVersionSearch("bravo")
.waitForDisplayedVersions(1);
assertVersions(projectVersionsPage, 1, new String[]{"bravo"});
projectVersionsPage = projectVersionsPage
.clearVersionSearch()
.enterVersionSearch("charlie")
.waitForDisplayedVersions(0);
assertVersions(projectVersionsPage, 0, new String[]{});
projectVersionsPage = projectVersionsPage
.clearVersionSearch()
.waitForDisplayedVersions(2);
assertVersions(projectVersionsPage, 2, new String[]{"bravo", "alpha"});
}