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 ...@@ -47,7 +47,9 @@ describe 'Multi-file editor new directory', :js do
fill_in('commit-message', with: 'commit message ide') 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 find('.js-ide-edit-mode').click
......
...@@ -39,7 +39,9 @@ describe 'Multi-file editor new file', :js do ...@@ -39,7 +39,9 @@ describe 'Multi-file editor new file', :js do
fill_in('commit-message', with: 'commit message ide') 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') expect(page).to have_content('file name')
end end
......
...@@ -58,6 +58,7 @@ Capybara.javascript_driver = :chrome ...@@ -58,6 +58,7 @@ Capybara.javascript_driver = :chrome
Capybara.default_max_wait_time = timeout Capybara.default_max_wait_time = timeout
Capybara.ignore_hidden_elements = true Capybara.ignore_hidden_elements = true
Capybara.default_normalize_ws = true Capybara.default_normalize_ws = true
Capybara.enable_aria_label = true
# Keep only the screenshots generated from the last failing test suite # Keep only the screenshots generated from the last failing test suite
Capybara::Screenshot.prune_strategy = :keep_last_run 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