Use response.parsed_body
for html response checks (#31750)
This commit is contained in:
parent
fe04291af4
commit
e1b5f3fc6f
5 changed files with 12 additions and 10 deletions
|
@ -64,7 +64,7 @@ RSpec.describe Admin::ExportDomainBlocksController do
|
|||
end
|
||||
|
||||
def batch_table_rows
|
||||
Nokogiri::Slop(response.body).css('body div.batch-table__row')
|
||||
response.parsed_body.css('body div.batch-table__row')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue