Rails 5 fix Capybara::ElementNotFound: Unable to find visible css #modal-revert-commit and expected: "/bar" got: "/foo"

This commit is contained in:
Jasper Maes 2018-06-20 19:36:15 +02:00
parent abc6be62a0
commit 2c15890edc
3 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,6 @@
---
title: 'Rails 5 fix Capybara::ElementNotFound: Unable to find visible css #modal-revert-commit
and expected: "/bar" got: "/foo"'
merge_request: 20044
author: Jasper Maes
type: fixed

View File

@ -67,4 +67,6 @@ def update_username(new_username)
page.within('.modal') do
find('.js-modal-primary-action').click
end
wait_for_requests
end

View File

@ -13,6 +13,8 @@ describe 'User reverts a merge request', :js do
click_button('Merge')
wait_for_requests
visit(merge_request_path(merge_request))
end