From: simonbrandhof Date: Sat, 2 Oct 2010 11:03:05 +0000 (+0000) Subject: fix IT X-Git-Tag: 2.6~893 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3cf4bf1b3c8c2a10f5c0d8c2d894de34469264b5;p=sonarqube.git fix IT --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb index 83b8e4460cf..8ac42606ba8 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb @@ -44,10 +44,10 @@ <% if is_admin %> <% if rule.template? %> - <%= button_to "Copy rule", :action => 'new', :id => profile.id, :rule_id => rule.id %> + <%= button_to "Copy rule", {:action => 'new', :id => profile.id, :rule_id => rule.id}, :id => "copy-#{u rule.key}" %> <% end %> <% if rule.editable? %> - <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id -%> + <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id %> <% end %> <% end %> diff --git a/tests/integration/tests/src/it/selenium/rules/copy_and_edit_rule_template.html b/tests/integration/tests/src/it/selenium/rules/copy_and_edit_rule_template.html index ce6123432fd..20a64f9716c 100644 --- a/tests/integration/tests/src/it/selenium/rules/copy_and_edit_rule_template.html +++ b/tests/integration/tests/src/it/selenium/rules/copy_and_edit_rule_template.html @@ -3,7 +3,7 @@ - + copy_and_edit_rule_template @@ -93,7 +93,7 @@ clickAndWait - link=Copy rule + copy-pmd%3AXPathRule @@ -138,7 +138,7 @@ clickAndWait - link=Edit rule + //input[@value='Edit rule']