diff options
Diffstat (limited to 'spec/features/projects/commits/user_browses_commits_spec.rb')
-rw-r--r-- | spec/features/projects/commits/user_browses_commits_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/features/projects/commits/user_browses_commits_spec.rb b/spec/features/projects/commits/user_browses_commits_spec.rb index 4894e2b7f3e..76162fb800a 100644 --- a/spec/features/projects/commits/user_browses_commits_spec.rb +++ b/spec/features/projects/commits/user_browses_commits_spec.rb @@ -20,9 +20,14 @@ RSpec.describe 'User browses commits' do .and have_content('Side-by-side') end - it 'fill commit sha when click new tag from commit page' do + it 'fill commit sha when click new tag from commit page', :js do + dropdown_selector = '[data-testid="commit-options-dropdown"]' visit project_commit_path(project, sample_commit.id) - click_link 'Tag' + find(dropdown_selector).click + + page.within(dropdown_selector) do + click_link 'Tag' + end expect(page).to have_selector("input[value='#{sample_commit.id}']", visible: false) end |