summaryrefslogtreecommitdiff
path: root/spec/features/projects/tree
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-07-15 14:16:55 +0100
committerNick Thomas <nick@gitlab.com>2019-07-22 14:28:31 +0100
commita600f147b4e9045534d4cf66e207d230b2af954e (patch)
treed0ca217249aec95a554255b2866d7796f9abf629 /spec/features/projects/tree
parent886a6957ec0d981426219f42d75e0af145a9f7cf (diff)
downloadgitlab-ce-a600f147b4e9045534d4cf66e207d230b2af954e.tar.gz
Add Aria support to capybara
Diffstat (limited to 'spec/features/projects/tree')
-rw-r--r--spec/features/projects/tree/create_directory_spec.rb4
-rw-r--r--spec/features/projects/tree/create_file_spec.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/projects/tree/create_directory_spec.rb b/spec/features/projects/tree/create_directory_spec.rb
index 2cb2a23b7be..8585e24bc35 100644
--- a/spec/features/projects/tree/create_directory_spec.rb
+++ b/spec/features/projects/tree/create_directory_spec.rb
@@ -47,7 +47,9 @@ describe 'Multi-file editor new directory', :js do
fill_in('commit-message', with: 'commit message ide')
- click_button('Commit')
+ page.within '.multi-file-commit-form' do
+ click_button('Commit')
+ end
find('.js-ide-edit-mode').click
diff --git a/spec/features/projects/tree/create_file_spec.rb b/spec/features/projects/tree/create_file_spec.rb
index 9f5524da8e9..8623b10562d 100644
--- a/spec/features/projects/tree/create_file_spec.rb
+++ b/spec/features/projects/tree/create_file_spec.rb
@@ -39,7 +39,9 @@ describe 'Multi-file editor new file', :js do
fill_in('commit-message', with: 'commit message ide')
- click_button('Commit')
+ page.within '.multi-file-commit-form' do
+ click_button('Commit')
+ end
expect(page).to have_content('file name')
end