diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-30 15:51:22 +0200 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-07-30 15:51:27 +0200 |
commit | 9cc7517fa0fc0b407e8902358a53d309db756658 (patch) | |
tree | 2401ed000cbec9b3b9627aa9a0a88f63f56184b8 /server/sonar-web | |
parent | ed7933c1bb27808106fe52e50e018207ffea5fed (diff) | |
download | sonarqube-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.js | 11 |
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'); + }); }); |