From: Stas Vilchik Date: Thu, 16 Apr 2015 12:01:16 +0000 (+0200) Subject: fix timezone failure of web tests X-Git-Tag: 5.2-RC1~2250 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cef1c1941839709b292be9df7d7c932f13244ec5;p=sonarqube.git fix timezone failure of web tests --- diff --git a/server/sonar-web/src/test/js/quality-profiles.js b/server/sonar-web/src/test/js/quality-profiles.js index 5fcb523b39f..1ff4d2330a5 100644 --- a/server/sonar-web/src/test/js/quality-profiles.js +++ b/server/sonar-web/src/test/js/quality-profiles.js @@ -830,7 +830,7 @@ casper.test.begin(testName('Changelog'), 21, function (test) { test.assertExists('.js-show-more-changelog'); test.assertElementCount('#quality-profile-changelog tbody tr', 2); - test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(1)', 'April 13 2015 1:44 PM'); + test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(1)', 'April 13 2015'); test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(1)', 'System'); test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(1)', 'ACTIVATED'); test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(1)', 'Synchronisation should not'); @@ -852,7 +852,7 @@ casper.test.begin(testName('Changelog'), 21, function (test) { test.assertDoesntExist('.js-show-changelog'); test.assertDoesntExist('.js-show-more-changelog'); - test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(3)', 'April 13 2015 1:44 PM'); + test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(3)', 'April 13 2015'); test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(3)', 'System'); test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(3)', 'DEACTIVATED'); test.assertSelectorContains('#quality-profile-changelog tbody tr:nth-child(3)', 'runFinalizersOnExit');