summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-12 09:38:04 +0100
committerPhil Hughes <me@iamphill.com>2018-06-12 09:38:04 +0100
commit39ed07a816c9f732715b835bd363057a315f6ee7 (patch)
tree033ab4d21e0b831a090498ba9c7254499095e233
parent6139050e3d394ce09bcb4ed0a0d74e18a5957e84 (diff)
downloadgitlab-ce-39ed07a816c9f732715b835bd363057a315f6ee7.tar.gz
karma updates
-rw-r--r--app/assets/stylesheets/pages/repo.scss8
-rw-r--r--spec/javascripts/ide/components/commit_sidebar/list_item_spec.js1
-rw-r--r--spec/javascripts/ide/components/commit_sidebar/list_spec.js1
-rw-r--r--spec/javascripts/ide/components/repo_commit_section_spec.js1
4 files changed, 7 insertions, 4 deletions
diff --git a/app/assets/stylesheets/pages/repo.scss b/app/assets/stylesheets/pages/repo.scss
index 7d277b13224..f0131579b9e 100644
--- a/app/assets/stylesheets/pages/repo.scss
+++ b/app/assets/stylesheets/pages/repo.scss
@@ -553,6 +553,10 @@
}
.multi-file-commit-list-item {
+ &.is-active {
+ background-color: $white-normal;
+ }
+
.multi-file-discard-btn {
display: none;
margin-top: -2px;
@@ -612,10 +616,6 @@
}
}
-.multi-file-commit-list-item.is-active {
- background-color: $white-normal;
-}
-
.multi-file-commit-list-path {
padding: 0;
background: none;
diff --git a/spec/javascripts/ide/components/commit_sidebar/list_item_spec.js b/spec/javascripts/ide/components/commit_sidebar/list_item_spec.js
index cc7e0a3f26d..a732028158e 100644
--- a/spec/javascripts/ide/components/commit_sidebar/list_item_spec.js
+++ b/spec/javascripts/ide/components/commit_sidebar/list_item_spec.js
@@ -19,6 +19,7 @@ describe('Multi-file editor commit sidebar list item', () => {
vm = createComponentWithStore(Component, store, {
file: f,
actionComponent: 'stage-button',
+ activeFileKey: `staged-${f.key}`,
}).$mount();
});
diff --git a/spec/javascripts/ide/components/commit_sidebar/list_spec.js b/spec/javascripts/ide/components/commit_sidebar/list_spec.js
index 54625ef90f8..a37cbd5a596 100644
--- a/spec/javascripts/ide/components/commit_sidebar/list_spec.js
+++ b/spec/javascripts/ide/components/commit_sidebar/list_spec.js
@@ -17,6 +17,7 @@ describe('Multi-file editor commit sidebar list', () => {
action: 'stageAllChanges',
actionBtnText: 'stage all',
itemActionComponent: 'stage-button',
+ activeFileKey: 'staged-testing',
});
vm.$store.state.rightPanelCollapsed = false;
diff --git a/spec/javascripts/ide/components/repo_commit_section_spec.js b/spec/javascripts/ide/components/repo_commit_section_spec.js
index 5e3e00a180b..0934c239a8e 100644
--- a/spec/javascripts/ide/components/repo_commit_section_spec.js
+++ b/spec/javascripts/ide/components/repo_commit_section_spec.js
@@ -98,6 +98,7 @@ describe('RepoCommitSection', () => {
store.state.noChangesStateSvgPath = 'nochangessvg';
store.state.committedStateSvgPath = 'svg';
+ vm.$destroy();
vm = createComponentWithStore(Component, store).$mount();
expect(vm.$el.querySelector('.js-empty-state').textContent.trim()).toContain('No changes');