From 53d0b449beb3e69a8e5b6b7066cb110a7dbbcdf3 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 11 Mar 2015 11:26:24 +0100 Subject: [PATCH] fix web tests --- .../coding-rules-page-no-available-profiles-for-activation.js | 2 +- .../source-viewer-should-not-show-source-if-no-permission.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js b/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js index a7ad36f86f7..08c4eda1587 100644 --- a/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js +++ b/server/sonar-web/src/test/js/coding-rules-page-no-available-profiles-for-activation.js @@ -55,7 +55,7 @@ casper.test.begin('coding-rules-page-no-available-profiles-for-activation', 2, f }) .then(function () { - test.assertExists('.modal .message-notice'); + test.assertExists('.modal .alert'); }) .then(function () { diff --git a/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js b/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js index ec29cb5af96..fb0301370b0 100644 --- a/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js +++ b/server/sonar-web/src/test/js/source-viewer-should-not-show-source-if-no-permission.js @@ -39,7 +39,8 @@ casper.test.begin(testName('source-viewer-should-not-show-source-if-no-permissio }) .then(function () { - casper.waitForSelector('.message-error', function () { + lib.capture(); + casper.waitForSelector('.alert', function () { test.assertDoesntExist('.source-line'); }); }) -- 2.39.5