diff options
author | Phil Hughes <me@iamphill.com> | 2017-09-28 09:30:33 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-09-28 09:30:33 +0100 |
commit | d0737b18856170d054c9235cd285d3eb5e45056b (patch) | |
tree | 1594bd52b297b517cdad937a052de418f9453131 /spec/features | |
parent | 05844d8b471b98c6b3251006aebfc78b97d88ac6 (diff) | |
download | gitlab-ce-d0737b18856170d054c9235cd285d3eb5e45056b.tar.gz |
spec fixesbreadcrumb-item-links
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/wiki/user_updates_wiki_page_spec.rb | 2 | ||||
-rw-r--r-- | spec/features/projects/wiki/user_views_wiki_page_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/projects/wiki/user_updates_wiki_page_spec.rb b/spec/features/projects/wiki/user_updates_wiki_page_spec.rb index 1cf14204159..949d90a50ff 100644 --- a/spec/features/projects/wiki/user_updates_wiki_page_spec.rb +++ b/spec/features/projects/wiki/user_updates_wiki_page_spec.rb @@ -40,7 +40,7 @@ describe 'User updates wiki page' do expect(current_path).to include('one/two/three-test') expect(find('.wiki-pages')).to have_content('Three') - click_on('Three') + first(:link, text: 'Three').click expect(find('.nav-text')).to have_content('Three') diff --git a/spec/features/projects/wiki/user_views_wiki_page_spec.rb b/spec/features/projects/wiki/user_views_wiki_page_spec.rb index d201d4f6b98..49ba2969ef0 100644 --- a/spec/features/projects/wiki/user_views_wiki_page_spec.rb +++ b/spec/features/projects/wiki/user_views_wiki_page_spec.rb @@ -34,7 +34,7 @@ describe 'User views a wiki page' do it 'shows the history of a page that has a path', :js do expect(current_path).to include('one/two/three-test') - click_on('Three') + first(:link, text: 'Three').click click_on('Page history') expect(current_path).to include('one/two/three-test') @@ -48,7 +48,7 @@ describe 'User views a wiki page' do expect(current_path).to include('one/two/three-test') expect(find('.wiki-pages')).to have_content('Three') - click_on('Three') + first(:link, text: 'Three').click expect(find('.nav-text')).to have_content('Three') |