From: Julien Lancelot Date: Wed, 25 May 2016 07:52:06 +0000 (+0200) Subject: Try to improve IT checks X-Git-Tag: 5.6-RC2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebe76781de3b2d031ed439052b13d3be0a48b135;p=sonarqube.git Try to improve IT checks --- 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 @@ waitForText - content - *Bulk update can not be performed*The replacement of "com.sonarsource.it.samples:multi-modules-sample:module_a" by "com.sonarsource.it.samples:multi-modules-sample:module_b" is impossible as it would result in duplicate keys (in red below):* + css=#content h1 + *Bulk update can not be performed* - waitForText - content + assertText + css=#content p + *The replacement of "com.sonarsource.it.samples:multi-modules-sample:module_a" by "com.sonarsource.it.samples:multi-modules-sample:module_b" is impossible as it would result in duplicate keys (in red below):* + + + assertText + css=#content .data *Duplicate key* 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 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
open/sessions/logout
open/sessions/login
typeloginadmin
typepasswordadmin
clickAndWaitcommit
open/dashboard/index/com.sonarsource.it.samples:multi-modules-sample
clickcss=#context-navigation .navbar-admin-link
waitForElementPresentlink=Update Key
clickAndWaitlink=Update Key
clickAndWaitid=bulk_update_button
waitForTextcontent*The two fields can not be blank for the bulk update.*
open/sessions/logout
open/sessions/login
typeloginadmin
typepasswordadmin
clickAndWaitcommit
open/dashboard/index/com.sonarsource.it.samples:multi-modules-sample
clickcss=#context-navigation .navbar-admin-link
waitForElementPresentlink=Update Key
clickAndWaitlink=Update Key
clickAndWaitid=bulk_update_button
waitForTextcss=#content #error*The two fields can not be blank for the bulk update.*
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 @@ waitForText - content + css=#content h1 + *Bulk update can not be performed* + + + assertText + css=#content *Bulk update can not be performed*No key contains the string to replace ("foo").*