diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-26 10:49:01 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-10-26 10:49:01 +0300 |
commit | 1cc093011f43ca228f441f4228010ba2e0e2eeaf (patch) | |
tree | abf920f074d7cf0ba182ad4546e4cbc52aa8d74b /spec | |
parent | 9b36f52310c5fe0b8e366b8ed5d24e9f5d9a49d4 (diff) |
Fix stage dropdown rendering only in English
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/jobs/components/sidebar_spec.js | 5 | ||||
-rw-r--r-- | spec/javascripts/jobs/store/mutations_spec.js | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/spec/javascripts/jobs/components/sidebar_spec.js b/spec/javascripts/jobs/components/sidebar_spec.js index 460a2e1b5da..424092d2d88 100644 --- a/spec/javascripts/jobs/components/sidebar_spec.js +++ b/spec/javascripts/jobs/components/sidebar_spec.js @@ -140,10 +140,11 @@ describe('Sidebar details block', () => { }); describe('while fetching stages', () => { - it('renders dropdown with More label', () => { + it('it does not render dropdown', () => { + store.dispatch('requestStages'); vm = mountComponentWithStore(SidebarComponent, { store }); - expect(vm.$el.querySelector('.js-selected-stage').textContent.trim()).toEqual('More'); + expect(vm.$el.querySelector('.js-selected-stage')).toBeNull(); }); }); diff --git a/spec/javascripts/jobs/store/mutations_spec.js b/spec/javascripts/jobs/store/mutations_spec.js index 4230a7c42cf..d7908efcf13 100644 --- a/spec/javascripts/jobs/store/mutations_spec.js +++ b/spec/javascripts/jobs/store/mutations_spec.js @@ -124,8 +124,8 @@ describe('Jobs Store Mutations', () => { expect(stateCopy.job).toEqual({ id: 1312321 }); }); - it('sets selectedStage when the selectedStage is More', () => { - expect(stateCopy.selectedStage).toEqual('More'); + it('sets selectedStage when the selectedStage is empty', () => { + expect(stateCopy.selectedStage).toEqual(''); mutations[types.RECEIVE_JOB_SUCCESS](stateCopy, { id: 1312321, stage: 'deploy' }); expect(stateCopy.selectedStage).toEqual('deploy'); |