]> source.dussan.org Git - sonarqube.git/commitdiff
fix IT
authorsimonbrandhof <simon.brandhof@gmail.com>
Sat, 2 Oct 2010 11:03:05 +0000 (11:03 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Sat, 2 Oct 2010 11:03:05 +0000 (11:03 +0000)
sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb
tests/integration/tests/src/it/selenium/rules/copy_and_edit_rule_template.html

index 83b8e4460cf1a7396aad69f20e79e9d71175494b..8ac42606ba8e7cfa3b4cb9841c0f0b58a68c331c 100644 (file)
      </table>
       <% 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 %>
     </div>
index ce6123432fd74f1668d55f527f2099aed4f98307..20a64f9716c3ef3be12a9015eac91e42af6a8d97 100644 (file)
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head profile="http://selenium-ide.openqa.org/profiles/test-case">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="" />
+<link rel="selenium.base" href="http://localhost:9000/" />
 <title>copy_and_edit_rule_template</title>
 </head>
 <body>
@@ -93,7 +93,7 @@
 </tr>
 <tr>
        <td>clickAndWait</td>
-       <td>link=Copy rule</td>
+       <td>copy-pmd%3AXPathRule</td>
        <td></td>
 </tr>
 <tr>
 </tr>
 <tr>
        <td>clickAndWait</td>
-       <td>link=Edit rule</td>
+       <td>//input[@value='Edit rule']</td>
        <td></td>
 </tr>
 <tr>