diff options
Diffstat (limited to 'spec/features/projects/files/user_replaces_files_spec.rb')
-rw-r--r-- | spec/features/projects/files/user_replaces_files_spec.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/spec/features/projects/files/user_replaces_files_spec.rb b/spec/features/projects/files/user_replaces_files_spec.rb index fe9520fffc8..1ecd50b6463 100644 --- a/spec/features/projects/files/user_replaces_files_spec.rb +++ b/spec/features/projects/files/user_replaces_files_spec.rb @@ -17,7 +17,6 @@ RSpec.describe 'Projects > Files > User replaces files', :js do let(:user) { create(:user) } before do - stub_feature_flags(refactor_blob_viewer: false) # This stub will be removed in https://gitlab.com/gitlab-org/gitlab/-/issues/349953 sign_in(user) end @@ -34,9 +33,9 @@ RSpec.describe 'Projects > Files > User replaces files', :js do expect(page).to have_content('.gitignore') click_on('Replace') - drop_in_dropzone(File.join(Rails.root, 'spec', 'fixtures', 'doc_sample.txt')) + find(".upload-dropzone-card").drop(File.join(Rails.root, 'spec', 'fixtures', 'doc_sample.txt')) - page.within('#modal-upload-blob') do + page.within('#modal-replace-blob') do fill_in(:commit_message, with: 'Replacement file commit message') end @@ -70,9 +69,9 @@ RSpec.describe 'Projects > Files > User replaces files', :js do expect(page).to have_content(fork_message) click_on('Replace') - drop_in_dropzone(File.join(Rails.root, 'spec', 'fixtures', 'doc_sample.txt')) + find(".upload-dropzone-card").drop(File.join(Rails.root, 'spec', 'fixtures', 'doc_sample.txt')) - page.within('#modal-upload-blob') do + page.within('#modal-replace-blob') do fill_in(:commit_message, with: 'Replacement file commit message') end @@ -82,7 +81,7 @@ RSpec.describe 'Projects > Files > User replaces files', :js do fork = user.fork_of(project2.reload) - expect(current_path).to eq(project_new_merge_request_path(fork)) + expect(page).to have_current_path(project_new_merge_request_path(fork), ignore_query: true) click_link('Changes') |