aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test/medium
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-08-20 15:39:03 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-08-24 09:22:49 +0200
commit7a65a44016c32c5656e7aa5f0e174e670b6849b0 (patch)
treeea8840f4bc19efd99d78a917e797bc1c2902e98e /server/sonar-web/test/medium
parentc007b1899708a5cb4dce68087ed33a0c36551877 (diff)
downloadsonarqube-7a65a44016c32c5656e7aa5f0e174e670b6849b0.tar.gz
sonarqube-7a65a44016c32c5656e7aa5f0e174e670b6849b0.zip
SONAR-6797 rewrite project permissions page
Diffstat (limited to 'server/sonar-web/test/medium')
-rw-r--r--server/sonar-web/test/medium/project-permissions.spec.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/server/sonar-web/test/medium/project-permissions.spec.js b/server/sonar-web/test/medium/project-permissions.spec.js
new file mode 100644
index 00000000000..1e32733fbf3
--- /dev/null
+++ b/server/sonar-web/test/medium/project-permissions.spec.js
@@ -0,0 +1,22 @@
+define(function (require) {
+ var bdd = require('intern!bdd');
+ require('../helpers/test-page');
+
+ bdd.describe('Project Permissions', function () {
+ bdd.it('should show permissions', function () {
+ return this.remote
+ .open()
+ .mockFromFile('/api/permissions/search_project_permissions', 'permissions/project-permissions.json')
+ .startApp('project-permissions')
+ .checkElementExist('#project-permissions-header')
+ .checkElementExist('#projects')
+ .checkElementCount('#projects > thead > tr > th', 3)
+ .checkElementCount('#projects > tbody > tr', 2)
+ .checkElementInclude('#projects > tbody > tr:first-child td:nth-child(1)', 'My Project')
+ .checkElementInclude('#projects > tbody > tr:first-child td:nth-child(2)', '1')
+ .checkElementInclude('#projects > tbody > tr:first-child td:nth-child(2)', '2')
+ .checkElementInclude('#projects > tbody > tr:first-child td:nth-child(3)', '3')
+ .checkElementInclude('#projects > tbody > tr:first-child td:nth-child(3)', '4');
+ });
+ });
+});