From 3c445bc471c8ca2b11df44015bbe7b8997a61ccc Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 15 Sep 2015 17:12:19 +0200 Subject: SONAR-6654 When a user flags an issue as "False Positive" or "Won't Fix", encourage him/her to provide a comment --- server/sonar-web/test/medium/issues.spec.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'server/sonar-web/test/medium/issues.spec.js') 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'); + }); }); }); -- cgit v1.2.3