aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test/medium
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-15 10:09:05 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-15 10:09:05 +0200
commit818c2fdae55e2761bc1269de3bf3d07f91b3ce6f (patch)
treee44f4cd99a1408887c290d207c9855e627212606 /server/sonar-web/test/medium
parent6753155e4dd6d1ccb800703ded086cc601d9a405 (diff)
downloadsonarqube-818c2fdae55e2761bc1269de3bf3d07f91b3ce6f.tar.gz
sonarqube-818c2fdae55e2761bc1269de3bf3d07f91b3ce6f.zip
SONAR-6697 update UI of the custom measures page
Diffstat (limited to 'server/sonar-web/test/medium')
-rw-r--r--server/sonar-web/test/medium/custom-measures.spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/test/medium/custom-measures.spec.js b/server/sonar-web/test/medium/custom-measures.spec.js
index 26186842e26..87c97ad6dcd 100644
--- a/server/sonar-web/test/medium/custom-measures.spec.js
+++ b/server/sonar-web/test/medium/custom-measures.spec.js
@@ -11,7 +11,7 @@ define(function (require) {
.mockFromFile('/api/custom_measures/search', 'custom-measures-spec/search.json',
{ data: { projectId: projectId } })
.startApp('custom-measures', { projectId: projectId })
- .checkElementCount('#custom-measures-list li[data-id]', 4)
+ .checkElementCount('#custom-measures-list tr[data-id]', 4)
.checkElementInclude('#custom-measures-list .js-custom-measure-value', '35')
.checkElementInclude('#custom-measures-list .js-custom-measure-metric-name', 'Distribution')
.checkElementInclude('#custom-measures-list .js-custom-measure-domain', 'Management')
@@ -30,14 +30,14 @@ define(function (require) {
.mockFromFile('/api/custom_measures/search', 'custom-measures-spec/search-big-1.json',
{ data: { projectId: projectId } })
.startApp('custom-measures', { projectId: projectId })
- .checkElementCount('#custom-measures-list li[data-id]', 2)
+ .checkElementCount('#custom-measures-list tr[data-id]', 2)
.checkElementNotExist('[data-id="3"]')
.clearMocks()
.mockFromFile('/api/custom_measures/search', 'custom-measures-spec/search-big-2.json',
{ data: { projectId: projectId, p: 2 } })
.clickElement('#custom-measures-fetch-more')
.checkElementExist('[data-id="3"]')
- .checkElementCount('#custom-measures-list li[data-id]', 4);
+ .checkElementCount('#custom-measures-list tr[data-id]', 4);
});
bdd.it('should create a new custom measure', function () {
@@ -47,7 +47,7 @@ define(function (require) {
{ data: { projectId: projectId } })
.mockFromFile('/api/metrics/search', 'custom-measures-spec/metrics.json', { data: { isCustom: true } })
.startApp('custom-measures', { projectId: projectId })
- .checkElementCount('#custom-measures-list li[data-id]', 4)
+ .checkElementCount('#custom-measures-list tr[data-id]', 4)
.clickElement('#custom-measures-create')
.checkElementExist('#create-custom-measure-form')
.clearMocks()
@@ -64,7 +64,7 @@ define(function (require) {
.fillElement('#create-custom-measure-description', 'example')
.clickElement('#create-custom-measure-submit')
.checkElementExist('[data-id="6"]')
- .checkElementCount('#custom-measures-list li[data-id]', 5)
+ .checkElementCount('#custom-measures-list tr[data-id]', 5)
.checkElementInclude('[data-id="6"] .js-custom-measure-value', '17');
});