diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-09-18 11:21:34 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-18 23:49:44 +0200 |
commit | 4f109df6d8e53e6a2db17bbfcdb9d38332256930 (patch) | |
tree | 1e1f5dc229e13417fd219de9e1dfc67800bd8c52 /server/sonar-web/test | |
parent | d3fd3a3175fac49d0c2874dc33e06497d4505de1 (diff) | |
download | sonarqube-4f109df6d8e53e6a2db17bbfcdb9d38332256930.tar.gz sonarqube-4f109df6d8e53e6a2db17bbfcdb9d38332256930.zip |
SONAR-6834 use new API
Diffstat (limited to 'server/sonar-web/test')
-rw-r--r-- | server/sonar-web/test/medium/computation.spec.js | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/server/sonar-web/test/medium/computation.spec.js b/server/sonar-web/test/medium/computation.spec.js index 4884204fbf1..52b23a5391d 100644 --- a/server/sonar-web/test/medium/computation.spec.js +++ b/server/sonar-web/test/medium/computation.spec.js @@ -6,18 +6,17 @@ define(function (require) { bdd.it('should show list', function () { return this.remote .open() - .mockFromFile('/api/computation/queue', 'computation-spec/queue.json') - .mockFromFile('/api/computation/history', 'computation-spec/history.json') + .mockFromFile('/api/ce/queue', 'computation-spec/queue.json') + .mockFromFile('/api/ce/activity', 'computation-spec/history.json') .startApp('computation', { urlRoot: '/test/medium/base.html' }) .checkElementCount('#computation-list li[data-id]', 1) - .checkElementInclude('#computation-list', 'SonarQube') + .checkElementInclude('#computation-list', 'SonarSource :: Rule API') .checkElementInclude('#computation-list-footer', '1') .checkElementExist('.js-queue.selected') .clickElement('.js-history') - .checkElementCount('#computation-list li[data-id]', 3) + .checkElementCount('#computation-list li[data-id]', 2) .checkElementInclude('#computation-list', 'Duration') .checkElementExist('.js-history.selected') - .checkElementExist('.panel-danger[data-id="3"]') .clickElement('.js-queue') .checkElementCount('#computation-list li[data-id]', 1); }); @@ -25,12 +24,12 @@ define(function (require) { bdd.it('should show more', function () { return this.remote .open('#past') - .mockFromFile('/api/computation/queue', 'computation-spec/queue.json') - .mockFromFile('/api/computation/history', 'computation-spec/history-big-1.json') + .mockFromFile('/api/ce/queue', 'computation-spec/queue.json') + .mockFromFile('/api/ce/activity', 'computation-spec/history-big-1.json') .startApp('computation', { urlRoot: '/test/medium/base.html' }) .checkElementCount('#computation-list li[data-id]', 2) .clearMocks() - .mockFromFile('/api/computation/history', 'computation-spec/history-big-2.json', { data: { p: 2 } }) + .mockFromFile('/api/ce/activity', 'computation-spec/history-big-2.json', { data: { p: 2 } }) .clickElement('#computation-fetch-more') .checkElementCount('#computation-list li[data-id]', 3); }); |