summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-31 10:48:16 +0000
committerJose Ivan Vargas <jvargas@gitlab.com>2017-09-01 17:32:18 -0500
commit0b50c9226c0ce152be90d269db867bd3c750dfe5 (patch)
treef56a3b9d1457d9c035efdf99f022fa0e202d66a0 /spec
parent89e2feab0a6f33b0da7b0d868a22082c7643bc3e (diff)
downloadgitlab-ce-0b50c9226c0ce152be90d269db867bd3c750dfe5.tar.gz
Revert "Merge branch '37179-dashboard-project-dropdown' into 'master'"
This reverts commit 6d6223ecdb3b87a061aecf7b2c586cadc0f29695, reversing changes made to cc7811707424ebd58b71428c9fe27c444dd6169d.
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/project_select_combo_button_spec.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/javascripts/project_select_combo_button_spec.js b/spec/javascripts/project_select_combo_button_spec.js
index bd838559556..e10a5a3bef6 100644
--- a/spec/javascripts/project_select_combo_button_spec.js
+++ b/spec/javascripts/project_select_combo_button_spec.js
@@ -32,6 +32,11 @@ describe('Project Select Combo Button', function () {
this.comboButton = new ProjectSelectComboButton(this.projectSelectInput);
});
+ it('newItemBtn is disabled', function () {
+ expect(this.newItemBtn.hasAttribute('disabled')).toBe(true);
+ expect(this.newItemBtn.classList.contains('disabled')).toBe(true);
+ });
+
it('newItemBtn href is null', function () {
expect(this.newItemBtn.getAttribute('href')).toBe('');
});
@@ -48,6 +53,11 @@ describe('Project Select Combo Button', function () {
this.comboButton = new ProjectSelectComboButton(this.projectSelectInput);
});
+ it('newItemBtn is not disabled', function () {
+ expect(this.newItemBtn.hasAttribute('disabled')).toBe(false);
+ expect(this.newItemBtn.classList.contains('disabled')).toBe(false);
+ });
+
it('newItemBtn href is correctly set', function () {
expect(this.newItemBtn.getAttribute('href')).toBe(this.defaults.projectMeta.url);
});
@@ -72,6 +82,11 @@ describe('Project Select Combo Button', function () {
.trigger('change');
});
+ it('newItemBtn is not disabled', function () {
+ expect(this.newItemBtn.hasAttribute('disabled')).toBe(false);
+ expect(this.newItemBtn.classList.contains('disabled')).toBe(false);
+ });
+
it('newItemBtn href is correctly set', function () {
expect(this.newItemBtn.getAttribute('href'))
.toBe('http://myothercoolproject.com/issues/new');