diff options
author | Stan Hu <stanhu@gmail.com> | 2015-09-15 06:58:49 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-09-15 13:07:32 -0700 |
commit | d9af6f79ed439308d13f44a0cfade6a355607f14 (patch) | |
tree | 99ea6028fee1cf0b506fc9aacd810daa1ad1b326 /features/steps | |
parent | 0a8ef29b3d2504ba66cd0a98992c1f5f70b11daa (diff) | |
download | gitlab-ce-d9af6f79ed439308d13f44a0cfade6a355607f14.tar.gz |
Change the replace placeholder to use the filenamefix-upload-ui
Dynamically adjust placedholder for uploads and fix Dropzone event handlers
Override error handler to prevent error messages from being inserted underneath image preview
Fix tests
Use regexp instead of startsWith for better browser compatibility
Remove duplicate code in _replace.html.haml and use one template
Remove files upon error and retain alert messages until user adds a new file
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/project/source/browse_files.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/features/steps/project/source/browse_files.rb b/features/steps/project/source/browse_files.rb index 7a0ee4df45e..a1a49dd58a6 100644 --- a/features/steps/project/source/browse_files.rb +++ b/features/steps/project/source/browse_files.rb @@ -119,12 +119,12 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps expect(page).to have_content "Commit message" end - step 'I can see "upload existing one"' do - expect(page).to have_content "upload existing one" + step 'I can see "upload an existing one"' do + expect(page).to have_content "upload an existing one" end - step 'I click on "upload existing one"' do - click_link 'upload existing one' + step 'I click on "upload"' do + click_link 'upload' end step 'I click on "Upload file"' do @@ -150,7 +150,7 @@ class Spinach::Features::ProjectSourceBrowseFiles < Spinach::FeatureSteps end step 'I fill the replace file commit message' do - page.within('#modal-replace-blob') do + page.within('#modal-upload-blob') do fill_in :commit_message, with: 'Replacement file commit message' end end |