aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-08-17 17:08:06 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-08-17 17:11:54 +0200
commit862d4a02e215d2b6ae215976f766e761ed9d84d0 (patch)
tree44d65d1e1751b620a3d8b187d14eecc2b455500e /server/sonar-web/test
parent24f3abee42c9e734418f5ad4359f639bca5eb899 (diff)
downloadsonarqube-862d4a02e215d2b6ae215976f766e761ed9d84d0.tar.gz
sonarqube-862d4a02e215d2b6ae215976f766e761ed9d84d0.zip
SONAR-6765 apply feedback
Diffstat (limited to 'server/sonar-web/test')
-rw-r--r--server/sonar-web/test/medium/source-viewer.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/test/medium/source-viewer.spec.js b/server/sonar-web/test/medium/source-viewer.spec.js
index 544dfa39427..5872dc7c0fe 100644
--- a/server/sonar-web/test/medium/source-viewer.spec.js
+++ b/server/sonar-web/test/medium/source-viewer.spec.js
@@ -42,7 +42,7 @@ define(function (require) {
.checkElementInclude('.source-line-code[data-line-number="3"] .source-line-code-issue', '14 So')
.clickElement('.source-line-with-issues[data-line-number="3"]')
.clickElement('.js-issue-locations')
- .checkElementExist('.source-line-code[data-line-number="3"] .source-viewer-issue-location')
+ .checkElementCount('.source-line-code[data-line-number="3"] .source-viewer-issue-location', 1)
.checkElementCount('.source-line-code[data-line-number="3"] .source-line-code-secondary-issue', 2)
.checkElementInclude('.source-line-code[data-line-number="3"] .source-line-code-secondary-issue', ') 200')
.checkElementInclude('.source-line-code[data-line-number="3"] .source-line-code-secondary-issue', '14 So');
@@ -61,8 +61,8 @@ define(function (require) {
.checkElementInclude('.source-line-code[data-line-number="9"] .source-line-code-issue', 'sion')
.clickElement('.source-line-with-issues[data-line-number="9"]')
.clickElement('.js-issue-locations')
- .checkElementExist('.source-line-code[data-line-number="8"] .source-viewer-issue-location')
- .checkElementExist('.source-line-code[data-line-number="9"] .source-viewer-issue-location')
+ .checkElementCount('.source-line-code[data-line-number="8"] .source-viewer-issue-location', 1)
+ .checkElementNotExist('.source-line-code[data-line-number="9"] .source-viewer-issue-location')
.checkElementCount('.source-line-code[data-line-number="8"] .source-line-code-secondary-issue', 1)
.checkElementCount('.source-line-code[data-line-number="9"] .source-line-code-secondary-issue', 1)
.checkElementInclude('.source-line-code[data-line-number="8"] .source-line-code-secondary-issue', 'ense ')