diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-12 00:14:02 +0300 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-04-12 19:05:50 +0300 |
commit | eae2ed3366ac13832c56aefe965513b986d7e8b1 (patch) | |
tree | 12fa2cb1bac9ab03c1476f5c58f215aaf0a7ba10 /spec/features/projects/files | |
parent | 2bf3846adcac843958837a32fafdeb63d067a532 (diff) |
Spec improvements for speed, reliability and readability
Diffstat (limited to 'spec/features/projects/files')
-rw-r--r-- | spec/features/projects/files/user_edits_files_spec.rb | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/spec/features/projects/files/user_edits_files_spec.rb b/spec/features/projects/files/user_edits_files_spec.rb index ee9deb30890..dc6e4fd27cb 100644 --- a/spec/features/projects/files/user_edits_files_spec.rb +++ b/spec/features/projects/files/user_edits_files_spec.rb @@ -20,15 +20,11 @@ describe 'Projects > Files > User edits files' do click_link('.gitignore') aggregate_failures 'available edit buttons' do - # We're showing a link, if the user can edit directly, this is becomes a - # button when the user can fork the project. - expect(page).not_to have_link('Edit') - expect(page).not_to have_button('Edit') - expect(page).not_to have_link('Web IDE') - expect(page).not_to have_button('Web IDE') - - expect(page).not_to have_button('Replace') - expect(page).not_to have_button('Delete') + expect(page).not_to have_text('Edit') + expect(page).not_to have_text('Web IDE') + + expect(page).not_to have_text('Replace') + expect(page).not_to have_text('Delete') end end end |