aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/test/medium/coding-rules.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/test/medium/coding-rules.spec.js')
-rw-r--r--server/sonar-web/test/medium/coding-rules.spec.js80
1 files changed, 40 insertions, 40 deletions
diff --git a/server/sonar-web/test/medium/coding-rules.spec.js b/server/sonar-web/test/medium/coding-rules.spec.js
index 849496b6ff6..ac363c87c2b 100644
--- a/server/sonar-web/test/medium/coding-rules.spec.js
+++ b/server/sonar-web/test/medium/coding-rules.spec.js
@@ -11,7 +11,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-no-available-profiles.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-no-available-profiles.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-detail-header')
@@ -26,7 +26,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-profile-facet.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', '609')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
@@ -56,7 +56,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', '609')
.clearMocks()
@@ -78,7 +78,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-detail-header')
@@ -93,7 +93,7 @@ define(function (require) {
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-activate-profile.json')
.mockFromString('/api/qualityprofiles/activate_rule', '{}')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-detail-header')
@@ -117,7 +117,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-create-custom-rules.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clearMocks()
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-create-custom-rules.json')
@@ -144,7 +144,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-create-custom-rules.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.forceJSON()
.checkElementExist('.coding-rule.selected')
.clearMocks()
@@ -179,7 +179,7 @@ define(function (require) {
.mockFromFile('/api/rules/create', 'coding-rules-spec/show-create-manual-rule.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-create-manual-rule.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.forceJSON()
.checkElementExist('.js-create-manual-rule')
.clickElement('.js-create-manual-rule')
@@ -201,7 +201,7 @@ define(function (require) {
.mockFromFile('/api/rules/create', 'coding-rules-spec/show-create-manual-rule.json', { status: 409 })
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-create-manual-rule.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.forceJSON()
.checkElementExist('.js-create-manual-rule')
.clickElement('.js-create-manual-rule')
@@ -231,7 +231,7 @@ define(function (require) {
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-delete-custom-rule.json')
.mockFromString('/api/rules/delete', '{}')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('#coding-rules-detail-custom-rules .coding-rules-detail-list-name')
@@ -248,7 +248,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-delete-manual-rule-before.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-delete-manual-rule.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.forceJSON()
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
@@ -271,7 +271,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-show-cutsom-rule.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-show-cutsom-rule.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('#coding-rules-detail-custom-rules .coding-rules-detail-list-name')
@@ -286,7 +286,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-deprecated.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.checkElementInclude('.coding-rule.selected', 'DEPRECATED');
});
@@ -298,7 +298,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-show-details.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show-show-details.json')
.mockFromString('/api/issues/search', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-detail-header')
@@ -333,7 +333,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search-empty.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.search-navigator-facet-box')
.checkElementNotExist('.coding-rule')
.checkElementInclude('#coding-rules-total', 0)
@@ -345,7 +345,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.search-navigator-facet-box')
.checkElementCount('.search-navigator-facet-box', 13);
});
@@ -355,7 +355,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.checkElementInclude('.coding-rule.selected', 'Values passed to SQL commands should be sanitized')
.checkElementInclude('.coding-rule.selected', 'Java')
@@ -373,7 +373,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show.json')
.mockFromFile('/api/issues/search', 'coding-rules-spec/issues-search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-most-violated-projects')
@@ -389,7 +389,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementCount('.coding-rule', 25)
.checkElementInclude('.coding-rule', 'Values passed to SQL commands should be sanitized')
@@ -403,7 +403,7 @@ define(function (require) {
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-detail-header')
@@ -424,7 +424,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected .js-rule-filter')
.checkElementInclude('#coding-rules-total', '609')
.clickElement('.js-rule-filter')
@@ -441,7 +441,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', '609')
.checkElementExist('.search-navigator-facet-box-forbidden[data-property="active_severities"]')
@@ -475,7 +475,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', '609')
.clearMocks()
@@ -496,7 +496,7 @@ define(function (require) {
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromString('/api/qualityprofiles/activate_rules', '{ "succeeded": 225 }')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.forceJSON()
.checkElementExist('.coding-rule')
.checkElementExist('.js-bulk-change')
@@ -521,7 +521,7 @@ define(function (require) {
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromString('/api/qualityprofiles/activate_rules', '{ "succeeded": 225, "failed": 395 }')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.forceJSON()
.checkElementExist('.coding-rule')
.checkElementExist('.js-bulk-change')
@@ -544,7 +544,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.clickElement('.js-facet[data-value="java"]')
.checkElementExist('.js-bulk-change')
@@ -565,7 +565,7 @@ define(function (require) {
{ data: { activation: true } })
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromString('/api/qualityprofiles/deactivate_rules', '{ "succeeded": 7 }')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
.checkElementExist('.js-facet[data-value="java-default-with-mojo-conventions-49307"]')
@@ -588,7 +588,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementExist('.search-navigator-facet-box-collapsed[data-property="debt_characteristics"]')
.clearMocks()
@@ -621,7 +621,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.clearMocks()
@@ -683,7 +683,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementExist('.search-navigator-facet-box-collapsed[data-property="is_template"]')
@@ -716,7 +716,7 @@ define(function (require) {
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromString('/api/languages/list', '{"languages":[{"key":"custom","name":"Custom"}]}',
{ data: { q: 'custom' } })
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.clickElement('[data-property="languages"] .select2-choice')
.checkElementExist('.select2-search')
@@ -746,7 +746,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', 609)
.clearMocks()
@@ -761,7 +761,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', 609)
.clearMocks()
@@ -781,7 +781,7 @@ define(function (require) {
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromFile('/api/rules/show', 'coding-rules-spec/show.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule.selected')
.clickElement('.coding-rule.selected .js-rule')
.checkElementExist('.coding-rules-detail-header')
@@ -795,7 +795,7 @@ define(function (require) {
.open()
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementInclude('#coding-rules-total', '609')
.checkElementExist('.search-navigator-facet-box-forbidden[data-property="inheritance"]')
@@ -851,7 +851,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementNotExist('.coding-rule-activation')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
@@ -874,7 +874,7 @@ define(function (require) {
{ data: { activation: 'false' } })
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
.mockFromString('/api/qualityprofiles/activate_rule', '{}')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementNotExist('.coding-rule-activation')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
@@ -901,7 +901,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.checkElementNotExist('.coding-rule-activation')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
@@ -943,7 +943,7 @@ define(function (require) {
rule_key: 'common-java:FailedUnitTests'
}
})
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.checkElementExist('.coding-rule')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
.checkElementExist('.js-facet[data-value="java-default-with-mojo-conventions-49307"]')
@@ -978,7 +978,7 @@ define(function (require) {
.mockFromString('/api/l10n/index', '{}')
.mockFromFile('/api/rules/app', 'coding-rules-spec/app.json')
.mockFromFile('/api/rules/search', 'coding-rules-spec/search.json')
- .startApp('coding-rules')
+ .startAppBrowserify('coding-rules')
.clickElement('[data-property="qprofile"] .js-facet-toggle')
.checkElementExist('.js-facet[data-value="java-default-with-mojo-conventions-49307"]')
.clearMocks()