diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-09-11 14:40:32 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-09-11 14:40:32 +0200 |
commit | d10d21c9f178d5ccad5884695a2975c970c875c8 (patch) | |
tree | 3a26e0927d8c05286eeaf04ca0fca42592b03e5c /server/sonar-web/test | |
parent | d68eabbdec9d5c6744a89aab66b7d2d30e122829 (diff) | |
download | sonarqube-d10d21c9f178d5ccad5884695a2975c970c875c8.tar.gz sonarqube-d10d21c9f178d5ccad5884695a2975c970c875c8.zip |
SONAR-6285 show filters on the issues home page
Diffstat (limited to 'server/sonar-web/test')
-rw-r--r-- | server/sonar-web/test/medium/issues.spec.js | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/server/sonar-web/test/medium/issues.spec.js b/server/sonar-web/test/medium/issues.spec.js index 809f82b7593..767ddee9fc2 100644 --- a/server/sonar-web/test/medium/issues.spec.js +++ b/server/sonar-web/test/medium/issues.spec.js @@ -11,12 +11,9 @@ define(function (require) { .mockFromFile('/api/issue_filters/search', 'issues-spec/issue-filters.json') .mockFromFile('/api/issues/search', 'issues-spec/search.json') .startApp('issues') - .sleep(2000) - .clickElement('.js-new-search') - .checkElementCount('.js-filter', 3) + .checkElementCount('.js-filter', 2) .checkElementCount('.js-filter[data-id="1"]', 1) - .checkElementCount('.js-filter[data-id="2"]', 1) - .checkElementCount('.js-filter[data-id="3"]', 1); + .checkElementCount('.js-filter[data-id="2"]', 1); }); bdd.it('should load a saved search', function () { @@ -27,7 +24,6 @@ define(function (require) { .mockFromFile('/api/issue_filters/search', 'issues-spec/issue-filters.json') .mockFromFile('/api/issues/search', 'issues-spec/search.json') .startApp('issues') - .clickElement('.js-new-search') .clickElement('.search-navigator-filters-show-list') .clickElement('.js-filter[data-id="2"]') .checkElementCount('.js-filter-copy', 1) @@ -44,7 +40,6 @@ define(function (require) { .mockFromFile('/api/issue_filters/search', 'issues-spec/issue-filters.json') .mockFromFile('/api/issues/search', 'issues-spec/search.json') .startApp('issues') - .clickElement('.js-new-search') .clickElement('.search-navigator-filters-show-list') .clickElement('.js-filter[data-id="2"]') .checkElementCount('.js-filter-copy', 1) @@ -59,13 +54,12 @@ define(function (require) { bdd.it('should load', function () { return this.remote - .open() + .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') .startApp('issues') - .clickElement('.js-new-search') .checkElementExist('.facet[data-value=BLOCKER]') .checkElementExist('.facet[data-value=CRITICAL]') .checkElementExist('.facet[data-value=MAJOR]') @@ -99,13 +93,12 @@ define(function (require) { bdd.it('should show severity facet', function () { return this.remote - .open() + .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') .startApp('issues') - .clickElement('.js-new-search') .checkElementCount('.issue', 50) .clearMocks() .mockFromFile('/api/issues/search', 'issues-spec/search-reopened.json', { data: { severities: 'BLOCKER' } }) @@ -118,13 +111,12 @@ define(function (require) { issueSelector = '.issue[data-key="' + issueKey + '"]'; return this.remote - .open() + .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') .startApp('issues') - .clickElement('.js-new-search') .checkElementExist('.js-selection') .checkElementNotExist('.js-selection.icon-checkbox-checked') .checkElementExist('.issue .js-toggle') @@ -143,7 +135,7 @@ define(function (require) { bdd.it('should bulk change issues', function () { return this.remote - .open() + .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') @@ -151,7 +143,6 @@ define(function (require) { .mockFromString('/issues/bulk_change_form*', '<div id="bulk-change-form">bulk change form</div>', { contentType: 'text/plain' }) .startApp('issues') - .clickElement('.js-new-search') .clickElement('#issues-bulk-change') .clickElement('.js-bulk-change') .checkElementExist('#bulk-change-form') @@ -163,7 +154,7 @@ define(function (require) { issueSelector = '.issue[data-key="' + issueKey + '"]'; return this.remote - .open() + .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') @@ -171,7 +162,6 @@ define(function (require) { .mockFromString('/issues/bulk_change_form*', '<div id="bulk-change-form">bulk change form</div>', { contentType: 'text/plain' }) .startApp('issues') - .clickElement('.js-new-search') .checkElementExist('.js-selection') .checkElementNotExist('.js-selection.icon-checkbox-checked') .checkElementExist('.issue .js-toggle') @@ -194,13 +184,12 @@ define(function (require) { bdd.it('should filter similar issues', function () { return this.remote - .open() + .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-filter-similar-issues.json') .startApp('issues') - .clickElement('.js-new-search') .checkElementCount('.issue', 2) .clickElement('.issue.selected .js-issue-filter') .checkElementExist('.bubble-popup') |