aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-30 15:51:22 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-07-30 15:51:27 +0200
commit9cc7517fa0fc0b407e8902358a53d309db756658 (patch)
tree2401ed000cbec9b3b9627aa9a0a88f63f56184b8 /server/sonar-web
parented7933c1bb27808106fe52e50e018207ffea5fed (diff)
downloadsonarqube-9cc7517fa0fc0b407e8902358a53d309db756658.tar.gz
sonarqube-9cc7517fa0fc0b407e8902358a53d309db756658.zip
SONAR-5505 Add MT for tag lexical order
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js
index 2553a3a3033..b221a5c59ce 100644
--- a/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js
+++ b/server/sonar-web/src/main/js/tests/e2e/tests/coding-rules-spec.js
@@ -32,8 +32,17 @@ casper.test.begin(testName('Readonly Tests'), function suite(test) {
casper.waitForSelector('.navigator-filters', function checkDefaultFilters() {
test.assertVisible('input[type="text"].query-filter-input');
test.assertElementCount('.navigator-filter', 15);
- test.assertElementCount('.navigator-filter-optional', 12 /* Only query, qProfile and 'More' are visible by default */);
+ test.assertElementCount('.navigator-filter-optional', 12 /* Only query, qProfile and 'More' are visible by default */);
test.assertVisible('button.navigator-filter-submit');
+
+
+ casper.click('.navigator-filter-more-criteria');
+ casper.waitUntilVisible('.navigator-filter-details.active', function checkTagsAreOrdered() {
+ casper.click('.navigator-filter-details.active li:nth-last-child(2) label');
+ test.assertSelectorHasText('.navigator-filter-details.active>.navigator-filter-select-list.choices>li:nth-child(1)', 'brain-overload');
+ test.assertSelectorHasText('.navigator-filter-details.active>.navigator-filter-select-list.choices>li:nth-child(11)', 'unused');
+ casper.click('.navigator-filter.active>.navigator-filter-disable');
+ });
});