summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/test')
-rw-r--r--server/sonar-web/test/medium/computation.spec.js15
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);
});