diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-09-15 17:12:19 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-09-15 17:13:31 +0200 |
commit | 3c445bc471c8ca2b11df44015bbe7b8997a61ccc (patch) | |
tree | 7ae7f1dc557c344ce9a0a01e6bb526508360af18 /server/sonar-web/test/medium/issues.spec.js | |
parent | cf8127c1b33fd0c066b0ec3ad9c970865fd1ffec (diff) | |
download | sonarqube-3c445bc471c8ca2b11df44015bbe7b8997a61ccc.tar.gz sonarqube-3c445bc471c8ca2b11df44015bbe7b8997a61ccc.zip |
SONAR-6654 When a user flags an issue as "False Positive" or "Won't Fix", encourage him/her to provide a comment
Diffstat (limited to 'server/sonar-web/test/medium/issues.spec.js')
-rw-r--r-- | server/sonar-web/test/medium/issues.spec.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server/sonar-web/test/medium/issues.spec.js b/server/sonar-web/test/medium/issues.spec.js index 767ddee9fc2..5b967215d7d 100644 --- a/server/sonar-web/test/medium/issues.spec.js +++ b/server/sonar-web/test/medium/issues.spec.js @@ -243,6 +243,21 @@ define(function (require) { .checkElementCount('[data-property="rules"] .js-facet', 13) .checkElementInclude('[data-property="rules"] .js-facet:nth-child(1)', 'Objects should be compared with'); }); + + bdd.it('should open comment form after FP or WF transition', function () { + return this.remote + .open('#resolved=false') + .mockFromString('/api/l10n/index', '{}') + .mockFromFile('/api/issue_filters/app', 'issues-spec/app.json') + .mockFromFile('/api/issue_filters/search', 'issues-spec/issue-filters.json') + .mockFromFile('/api/issues/search', 'issues-spec/search.json') + .mockFromFile('/api/issues/do_transition', 'issues-spec/show-fp-new.json') + .startApp('issues') + .checkElementExist('.issue.selected') + .clickElement('.issue.selected .js-issue-transition') + .clickElement('.js-issue-transition[data-value="falsepositive"]') + .checkElementExist('.js-issue-comment-submit'); + }); }); }); |