diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-24 15:27:46 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-24 15:28:42 +0200 |
commit | 3a1215b87a8e1192aeb62bc9697ba8e8520ab18c (patch) | |
tree | ab2679e21671711168bb4cec3105501788561346 /server/sonar-web/src/test/js | |
parent | 5522a2ac8d150a3317fc11bfff14b0ee33407d2d (diff) | |
download | sonarqube-3a1215b87a8e1192aeb62bc9697ba8e8520ab18c.tar.gz sonarqube-3a1215b87a8e1192aeb62bc9697ba8e8520ab18c.zip |
SONAR-6138 limit default list of favorites to 6 items, add favorites to search results
Diffstat (limited to 'server/sonar-web/src/test/js')
-rw-r--r-- | server/sonar-web/src/test/js/nav-spec.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/test/js/nav-spec.js b/server/sonar-web/src/test/js/nav-spec.js index 82101ec34e2..89f7552246f 100644 --- a/server/sonar-web/src/test/js/nav-spec.js +++ b/server/sonar-web/src/test/js/nav-spec.js @@ -228,7 +228,7 @@ casper.test.begin(testName('Login'), 3, function (test) { }); -casper.test.begin(testName('Search'), 23, function (test) { +casper.test.begin(testName('Search'), 24, function (test) { casper .start(lib.buildUrl('nav'), function () { lib.setDefaultViewport(); @@ -289,10 +289,11 @@ casper.test.begin(testName('Search'), 23, function (test) { }) .then(function () { - test.assertElementCount('.js-search-results a', 6); + test.assertElementCount('.js-search-results a', 7); test.assertExists('.js-search-results a[href*="/profiles"]'); test.assertExists('.js-search-results a[href*="/quality_gates"]'); test.assertExists('.js-search-results a[href*="/dashboard/?did=50"]'); + test.assertExists('.js-search-results a[href*="quality-project"]'); test.assertSelectorContains('.js-search-results a', 'SonarQube Java'); test.assertSelectorContains('.js-search-results a', 'SonarQube Java :: Squid'); test.assertSelectorContains('.js-search-results a', 'SonarQube Java :: Checks'); |