From 78f5f34c9bb2f7703a7cb01881aa510cca0c2d8d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 25 Jan 2012 23:22:16 +0000 Subject: [PATCH] add selenium test for roles git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1235987 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/webapp/js/archiva/repositories.js | 1 + .../js/redback/templates/roles-tmpl.html | 10 ++-- .../archiva-webapp-test-js/pom.xml | 12 ++++- .../apache/archiva/web/test/LoginTest.java | 6 --- .../archiva/web/test/RolesManagementTest.java | 46 +++++++++++++++++++ 5 files changed, 63 insertions(+), 12 deletions(-) create mode 100644 archiva-modules/archiva-web/archiva-webapp-test-js/src/test/testng/org/apache/archiva/web/test/RolesManagementTest.java diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js index ef18d0bf4..4585adf6e 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repositories.js @@ -654,6 +654,7 @@ $(function() { } activateRemoteRepositoryFormValidation=function(){ + // FIXME find a way to activate cronExpression validation only if downloadRemote is activated ! $("#main-content #remote-repository-edit-form").validate({ /*rules: { daysOlder : { diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html index 6f03d6351..ee7a674ec 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html @@ -23,7 +23,7 @@