Commit 61072a02 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'fix-shortcuts-spec' into 'master'

Ensure project name is present on page

## What does this MR do?
Fixes a failing spec




See merge request !4307
parents 29db3f2c bb3111c1
require 'spec_helper' require 'spec_helper'
feature 'Project shortcuts', feature: true do feature 'Project shortcuts', feature: true do
let(:project) { create(:project) } let(:project) { create(:project, name: 'Victorialand') }
let(:user) { create(:user) } let(:user) { create(:user) }
describe 'On a project', js: true do describe 'On a project', js: true do
...@@ -14,7 +14,7 @@ feature 'Project shortcuts', feature: true do ...@@ -14,7 +14,7 @@ feature 'Project shortcuts', feature: true do
describe 'pressing "i"' do describe 'pressing "i"' do
it 'redirects to new issue page' do it 'redirects to new issue page' do
find('body').native.send_key('i') find('body').native.send_key('i')
expect(page).to have_content('New Issue') expect(page).to have_content('Victorialand')
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment