Commit a600f147 authored by Nick Thomas's avatar Nick Thomas

Add Aria support to capybara

parent 886a6957
......@@ -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
......
......@@ -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
......
......@@ -58,6 +58,7 @@ Capybara.javascript_driver = :chrome
Capybara.default_max_wait_time = timeout
Capybara.ignore_hidden_elements = true
Capybara.default_normalize_ws = true
Capybara.enable_aria_label = true
# Keep only the screenshots generated from the last failing test suite
Capybara::Screenshot.prune_strategy = :keep_last_run
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment