mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
* Fixed the flaky failure in rspec for super admin user controller due to unescaped user name check
This commit is contained in:
@@ -19,7 +19,7 @@ RSpec.describe 'Super Admin Users API', type: :request do
|
||||
get '/super_admin/users'
|
||||
expect(response).to have_http_status(:success)
|
||||
expect(response.body).to include('New user')
|
||||
expect(response.body).to include(user.name)
|
||||
expect(response.body).to include(CGI.escapeHTML(user.name))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user