aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-05-25 09:52:06 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-05-25 09:52:06 +0200
commitebe76781de3b2d031ed439052b13d3be0a48b135 (patch)
tree01177d8489944f986f1be3657195aa3d524d4638 /it
parent79ad08c967c32f5c68d6b5a4844b2213b5f3015d (diff)
downloadsonarqube-ebe76781de3b2d031ed439052b13d3be0a48b135.tar.gz
sonarqube-ebe76781de3b2d031ed439052b13d3be0a48b135.zip
Try to improve IT checks
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-duplicate-keys.html13
-rw-r--r--it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-input.html110
-rw-r--r--it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-match.html7
3 files changed, 70 insertions, 60 deletions
diff --git a/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-duplicate-keys.html b/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-duplicate-keys.html
index d6c7ebb9662..3a80a92df24 100644
--- a/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-duplicate-keys.html
+++ b/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-duplicate-keys.html
@@ -65,12 +65,17 @@
</tr>
<tr>
<td>waitForText</td>
- <td>content</td>
- <td>*Bulk update can not be performed*The replacement of &quot;com.sonarsource.it.samples:multi-modules-sample:module_a&quot; by &quot;com.sonarsource.it.samples:multi-modules-sample:module_b&quot; is impossible as it would result in duplicate keys (in red below):*</td>
+ <td>css=#content h1</td>
+ <td>*Bulk update can not be performed*</td>
</tr>
<tr>
- <td>waitForText</td>
- <td>content</td>
+ <td>assertText</td>
+ <td>css=#content p</td>
+ <td>*The replacement of &quot;com.sonarsource.it.samples:multi-modules-sample:module_a&quot; by &quot;com.sonarsource.it.samples:multi-modules-sample:module_b&quot; is impossible as it would result in duplicate keys (in red below):*</td>
+</tr>
+<tr>
+ <td>assertText</td>
+ <td>css=#content .data</td>
<td>*Duplicate key*</td>
</tr>
<tr>
diff --git a/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-input.html b/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-input.html
index aec21d4e29d..7f2fcc091eb 100644
--- a/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-input.html
+++ b/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-input.html
@@ -9,61 +9,61 @@
<table cellpadding="1" cellspacing="1" border="1">
<tbody>
<tr>
- <td>open</td>
- <td>/sessions/logout</td>
- <td></td>
- </tr>
- <tr>
- <td>open</td>
- <td>/sessions/login</td>
- <td></td>
- </tr>
- <tr>
- <td>type</td>
- <td>login</td>
- <td>admin</td>
- </tr>
- <tr>
- <td>type</td>
- <td>password</td>
- <td>admin</td>
- </tr>
- <tr>
- <td>clickAndWait</td>
- <td>commit</td>
- <td></td>
- </tr>
- <tr>
- <td>open</td>
- <td>/dashboard/index/com.sonarsource.it.samples:multi-modules-sample</td>
- <td></td>
- </tr>
- <tr>
- <td>click</td>
- <td>css=#context-navigation .navbar-admin-link</td>
- <td></td>
- </tr>
- <tr>
- <td>waitForElementPresent</td>
- <td>link=Update Key</td>
- <td></td>
- </tr>
- <tr>
- <td>clickAndWait</td>
- <td>link=Update Key</td>
- <td></td>
- </tr>
- <tr>
- <td>clickAndWait</td>
- <td>id=bulk_update_button</td>
- <td></td>
- </tr>
- <tr>
- <td>waitForText</td>
- <td>content</td>
- <td>*The two fields can not be blank for the bulk update.*</td>
- </tr>
- </tbody>
+ <td>open</td>
+ <td>/sessions/logout</td>
+ <td></td>
+</tr>
+<tr>
+ <td>open</td>
+ <td>/sessions/login</td>
+ <td></td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>login</td>
+ <td>admin</td>
+</tr>
+<tr>
+ <td>type</td>
+ <td>password</td>
+ <td>admin</td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>commit</td>
+ <td></td>
+</tr>
+<tr>
+ <td>open</td>
+ <td>/dashboard/index/com.sonarsource.it.samples:multi-modules-sample</td>
+ <td></td>
+</tr>
+<tr>
+ <td>click</td>
+ <td>css=#context-navigation .navbar-admin-link</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForElementPresent</td>
+ <td>link=Update Key</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>link=Update Key</td>
+ <td></td>
+</tr>
+<tr>
+ <td>clickAndWait</td>
+ <td>id=bulk_update_button</td>
+ <td></td>
+</tr>
+<tr>
+ <td>waitForText</td>
+ <td>css=#content #error</td>
+ <td>*The two fields can not be blank for the bulk update.*</td>
+</tr>
+</tbody>
</table>
</body>
</html>
diff --git a/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-match.html b/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-match.html
index b5575100d6b..2e667543a15 100644
--- a/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-match.html
+++ b/it/it-tests/src/test/resources/projectAdministration/ProjectAdministrationTest/project-update-keys/bulk-update-impossible-because-no-match.html
@@ -70,7 +70,12 @@
</tr>
<tr>
<td>waitForText</td>
- <td>content</td>
+ <td>css=#content h1</td>
+ <td>*Bulk update can not be performed*</td>
+ </tr>
+ <tr>
+ <td>assertText</td>
+ <td>css=#content</td>
<td>*Bulk update can not be performed*No key contains the string to replace (&quot;foo&quot;).*</td>
</tr>
<tr>