diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-07-03 10:24:58 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-07-06 11:24:08 +0200 |
commit | c87a6ff50a25de17b5675c5c450cddf3bddd95a7 (patch) | |
tree | 3fcc8ae44b79e5512aa1c15857ed156c006bb3b4 /server/sonar-web/test | |
parent | 305df737845a9f3c982735e28907ba6dbdf84623 (diff) | |
download | sonarqube-c87a6ff50a25de17b5675c5c450cddf3bddd95a7.tar.gz sonarqube-c87a6ff50a25de17b5675c5c450cddf3bddd95a7.zip |
SONAR-6661 apply feedback
Diffstat (limited to 'server/sonar-web/test')
-rw-r--r-- | server/sonar-web/test/medium/update-center.spec.js | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/server/sonar-web/test/medium/update-center.spec.js b/server/sonar-web/test/medium/update-center.spec.js index c46fddaa590..6ef19879e78 100644 --- a/server/sonar-web/test/medium/update-center.spec.js +++ b/server/sonar-web/test/medium/update-center.spec.js @@ -42,7 +42,7 @@ define(function (require) { .checkElementExist('.js-plugin-name') .checkElementCount('li[data-system]', 1) .checkElementInclude('li[data-system] .js-plugin-name', 'SonarQube 5.3') - .checkElementInclude('li[data-system] .js-plugin-category', 'System Update') + .checkElementInclude('li[data-system] .js-plugin-category', 'System Upgrade') .checkElementInclude('li[data-system] .js-plugin-description', 'New!') .checkElementCount('li[data-system] .js-plugin-release-notes', 1) .checkElementCount('li[data-system] .js-plugin-date', 1) @@ -152,7 +152,7 @@ define(function (require) { .checkElementInclude('li:not(.hidden)[data-id] .js-plugin-name', 'JavaScript'); }); - bdd.it('should show plugin changelog', function () { + bdd.it('should show changelog of plugin update', function () { return this.remote .open('#installed') .mockFromString('/api/l10n/index', '{}') @@ -169,6 +169,22 @@ define(function (require) { .checkElementCount('.bubble-popup .js-plugin-changelog-description', 2); }); + bdd.it('should show changelog of plugin release', function () { + return this.remote + .open('#available') + .mockFromString('/api/l10n/index', '{}') + .mockFromFile('/api/plugins/available', 'update-center-spec/available.json') + .mockFromFile('/api/plugins/pending', 'update-center-spec/pending.json') + .startApp('update-center', { urlRoot: '/test/medium/base.html' }) + .checkElementExist('.js-plugin-name') + .clickElement('li[data-id="abap"] .js-changelog') + .checkElementExist('.bubble-popup') + .checkElementCount('.bubble-popup .js-plugin-changelog-version', 1) + .checkElementCount('.bubble-popup .js-plugin-changelog-date', 1) + .checkElementCount('.bubble-popup .js-plugin-changelog-link', 1) + .checkElementCount('.bubble-popup .js-plugin-changelog-description', 1); + }); + bdd.it('should update plugin', function () { return this.remote .open('#installed') @@ -181,7 +197,7 @@ define(function (require) { .checkElementExist('.js-plugin-name') .clickElement('li[data-id="scmgit"] .js-update') .checkElementNotExist('li[data-id="scmgit"] .js-spinner') - .checkElementInclude('li[data-id="scmgit"]', 'To Be Installed'); + .checkElementInclude('li[data-id="scmgit"]', 'Update Pending'); }); bdd.it('should uninstall plugin', function () { @@ -196,7 +212,7 @@ define(function (require) { .checkElementExist('.js-plugin-name') .clickElement('li[data-id="scmgit"] .js-uninstall') .checkElementNotExist('li[data-id="scmgit"] .js-spinner') - .checkElementInclude('li[data-id="scmgit"]', 'To Be Uninstalled'); + .checkElementInclude('li[data-id="scmgit"]', 'Uninstall Pending'); }); bdd.it('should install plugin', function () { @@ -210,7 +226,7 @@ define(function (require) { .checkElementExist('.js-plugin-name') .clickElement('li[data-id="abap"] .js-install') .checkElementNotExist('li[data-id="abap"] .js-spinner') - .checkElementInclude('li[data-id="abap"]', 'To Be Installed'); + .checkElementInclude('li[data-id="abap"]', 'Install Pending'); }); bdd.it('should cancel all pending', function () { |