fix discover e2e tests

stable
Juanfran 2016-09-28 07:01:33 +02:00
parent df22bcc021
commit bf407a04f6
1 changed files with 5 additions and 2 deletions

View File

@ -40,11 +40,14 @@ describe('discover search', () => {
});
it('search by text', async () => {
discoverHelper.searchInput().sendKeys('Project Example 0');
let projects = discoverHelper.searchProjects();
let projectTitle = projects.get(0).$('h2 a').getText();
discoverHelper.searchInput().sendKeys(projectTitle);
discoverHelper.sendSearch();
let projects = discoverHelper.searchProjects();
projects = discoverHelper.searchProjects();
expect(await projects.count()).to.be.equal(1);
});
});