diff options
author | Fabio Pitino <fpitino@gitlab.com> | 2019-06-17 18:01:36 +0300 |
---|---|---|
committer | Fabio Pitino <fpitino@gitlab.com> | 2019-06-17 18:01:36 +0300 |
commit | 81848b6375169705d0d7a00ff2b10cb0db71c8a9 (patch) | |
tree | 1d1950a005adb43ed7b9a6dd0e35ff5e69ecff9f /spec/features/projects | |
parent | e63d499fbd8bbeed4da6f67f5ddbbc93573deb73 (diff) |
Use :first css element to collapse
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/jobs/user_browses_job_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/features/projects/jobs/user_browses_job_spec.rb b/spec/features/projects/jobs/user_browses_job_spec.rb index 90a46c66a1c..49a7904f2e2 100644 --- a/spec/features/projects/jobs/user_browses_job_spec.rb +++ b/spec/features/projects/jobs/user_browses_job_spec.rb @@ -40,12 +40,15 @@ describe 'User browses a job', :js do it 'collapses a section' do wait_for_requests text_to_hide = "Cloning into '/nolith/ci-tests'" + text_to_show = 'Waiting for pod' expect(page).to have_content(text_to_hide) + expect(page).to have_content(text_to_show) - find('.js-section-start[data-section="get-sources"]').click + first('.js-section-start[data-section="get-sources"]').click expect(page).not_to have_content(text_to_hide) + expect(page).to have_content(text_to_show) end end |