diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-02 17:21:02 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-02 17:21:02 +0200 |
commit | f0e62de4662fce77f99d1bb7853ae30e54888e86 (patch) | |
tree | 215509cd39f1881b8d06a116b63b8c134c0aad4a | |
parent | 276f7dae840c43cbc217fb3589c4ad261b22f9cf (diff) | |
download | sonarqube-f0e62de4662fce77f99d1bb7853ae30e54888e86.tar.gz sonarqube-f0e62de4662fce77f99d1bb7853ae30e54888e86.zip |
make web tests timezone-proof
-rw-r--r-- | server/sonar-web/src/test/js/nav-spec.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/test/js/source-viewer-scm.js | 2 |
2 files changed, 2 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 66d91cf48af..1174fc501cf 100644 --- a/server/sonar-web/src/test/js/nav-spec.js +++ b/server/sonar-web/src/test/js/nav-spec.js @@ -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 () { diff --git a/server/sonar-web/src/test/js/source-viewer-scm.js b/server/sonar-web/src/test/js/source-viewer-scm.js index 0351687707a..f53a3ed5643 100644 --- a/server/sonar-web/src/test/js/source-viewer-scm.js +++ b/server/sonar-web/src/test/js/source-viewer-scm.js @@ -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'); }) |