summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-11-12 08:51:06 +0000
committerPhil Hughes <me@iamphill.com>2018-11-12 14:42:22 +0000
commiteaca2033d5145d8f679ecfe948a2d4ed909088ea (patch)
treed039f99abe07aa9e33ffee44f11af11934d17660 /spec
parent2e690c8208e9da5e7152e77cd77efdade5260be1 (diff)
downloadgitlab-ce-eaca2033d5145d8f679ecfe948a2d4ed909088ea.tar.gz
Changed diff tree filtering to path
Previously it was using name which could make it hard to filter for the file you want in a certain folder. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53781
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/diffs/components/tree_list_spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/diffs/components/tree_list_spec.js b/spec/javascripts/diffs/components/tree_list_spec.js
index fc94d0bab5b..a0b380adfd6 100644
--- a/spec/javascripts/diffs/components/tree_list_spec.js
+++ b/spec/javascripts/diffs/components/tree_list_spec.js
@@ -81,7 +81,7 @@ describe('Diffs tree list component', () => {
});
it('filters tree list to blobs matching search', done => {
- vm.search = 'index';
+ vm.search = 'app/index';
vm.$nextTick(() => {
expect(vm.$el.querySelectorAll('.file-row').length).toBe(1);