repo = _.findWhere(App.repositories, key: value)
other_repo_with_same_name = _.find(App.repositories, (repos) -> repos.name == repo.name && repos.key != repo.key)
if other_repo_with_same_name
- repo.name + ' - ' + App.languages[repo.language]
+ App.languages[repo.language] + ' ' + repo.name
else
repo.name
});
+ casper.waitForSelector('div.navigator-facets-list-item:nth-child(2)', function checkFacets() {
+ test.assertSelectorHasText('div.navigator-facets-list-item:nth-child(2) a:nth-child(1)', 'Java SonarQube');
+ test.assertSelectorHasText('div.navigator-facets-list-item:nth-child(2) a:nth-child(2)', 'Java Common SonarQube');
+ test.assertSelectorHasText('div.navigator-facets-list-item:nth-child(2) a:nth-child(3)', 'CoffeeScript SonarQube');
+ test.assertSelectorHasText('div.navigator-facets-list-item:nth-child(2) a:nth-child(4)', 'CoffeeScript Common SonarQube');
+ test.assertSelectorHasText('div.navigator-facets-list-item:nth-child(2) a:nth-child(5)', 'Xoo SonarQube');
+ });
+
+
casper.waitForSelector('li.active', function checkResultsList() {
test.assertElementCount('ol.navigator-results-list li', 10);
test.assertElementCount('li.active', 1);