]> source.dussan.org Git - sonarqube.git/commitdiff
make web tests timezone-proof
authorStas Vilchik <vilchiks@gmail.com>
Thu, 2 Apr 2015 15:21:02 +0000 (17:21 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 2 Apr 2015 15:21:02 +0000 (17:21 +0200)
server/sonar-web/src/test/js/nav-spec.js
server/sonar-web/src/test/js/source-viewer-scm.js

index 66d91cf48af13170205598fa4e32898fb2a6c440..1174fc501cf2fc792628c2f555b627a8209acc57 100644 (file)
@@ -355,7 +355,7 @@ casper.test.begin(testName('Context'), function (test) {
       .then(function () {
         test.assertSelectorContains('.navbar-context .nav-crumbs', 'SonarQube Java');
         test.assertSelectorContains('.navbar-context .navbar-context-meta', '2.9-SNAPSHOT');
-        test.assertSelectorContains('.navbar-context .navbar-context-meta', 'March 3 2015');
+        test.assertSelectorContains('.navbar-context .navbar-context-meta', '2015');
       })
 
       .then(function () {
index 0351687707a3e6bb4abddb2d84b4e7c310511a39..f53a3ed56435cbc1af4708512769206734bd78f0 100644 (file)
@@ -55,8 +55,8 @@ casper.test.begin(testName('SCM'), 4, function (test) {
       })
 
       .then(function () {
+        test.assertElementCount('.bubble-popup-section', 3);
         test.assertSelectorContains('.bubble-popup', 'sample-author');
-        test.assertSelectorContains('.bubble-popup', 'January 1 2015 1:00 AM');
         test.assertSelectorContains('.bubble-popup', 'samplerevision');
       })