0
0
Fork 0

Add the ability to ignore specific browser errors for a spec (#31436)

This commit is contained in:
Renaud Chaput 2024-08-15 08:44:13 +02:00 committed by GitHub
parent 9194197de5
commit 4545b8d6cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 3 deletions

View file

@ -24,6 +24,9 @@ describe 'Log out' do
describe 'Logging out from the JS app', :js, :streaming do
it 'logs the user out' do
# The frontend tries to load announcements after a short delay, but the session might be expired by then, and the browser will output an error.
ignore_js_error(/Failed to load resource: the server responded with a status of 422/)
visit root_path
within '.navigation-bar' do