Test user status update

This commit is contained in:
2023-05-21 17:33:13 +02:00
parent 479c159f78
commit 5b6e986170
2 changed files with 44 additions and 5 deletions

View File

@@ -21,6 +21,11 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
click_on t(:sign_in)
end
def inject_button_to(after, *button_options)
button = button_to *button_options
evaluate_script("arguments[0].insertAdjacentHTML('beforeend', '#{button.html_safe}');", after)
end
#def assert_stale(element)
# assert_raise(Selenium::WebDriver::Error::StaleElementReferenceError) { element.tag_name }
#end