diff options
author | Phil Hughes <me@iamphill.com> | 2018-02-26 17:12:38 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-02-26 17:12:38 +0300 |
commit | 34c7938804729bc8860096a3ae13450cd3102476 (patch) | |
tree | 270c20333fefe477760097f06adbacaef7095d7d /spec | |
parent | 7403ea37ade3f96e8dae296551ed986bfcbaf138 (diff) |
Fixed issue edit shortcut not working
This was caused by the element getting cached on the class before the
Vue app has finished rendering.
Closes #43560
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/form_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/issues/form_spec.rb b/spec/features/issues/form_spec.rb index faf14be4818..c2c4b479a8a 100644 --- a/spec/features/issues/form_spec.rb +++ b/spec/features/issues/form_spec.rb @@ -271,6 +271,18 @@ describe 'New/edit issue', :js do end end + context 'inline edit' do + before do + visit project_issue_path(project, issue) + end + + it 'opens inline edit form with shortcut' do + find('body').send_keys('e') + + expect(page).to have_selector('.detail-page-description form') + end + end + describe 'sub-group project' do let(:group) { create(:group) } let(:nested_group_1) { create(:group, parent: group) } |