Browse Source

Fix flaky test

pull/2849/head
Kat 6 months ago
parent
commit
af5c6632bf
  1. 2
      spec/helpers/tab_nav_helper_spec.rb

2
spec/helpers/tab_nav_helper_spec.rb

@ -9,7 +9,7 @@ RSpec.describe TabNavHelper do
describe "#user_cell" do
it "returns user link and email separated by a newline character" do
expected_html = "<a class=\"govuk-link\" href=\"/users\">#{current_user.name}</a>\n<span class=\"govuk-visually-hidden\">User </span><span class=\"govuk-!-font-weight-regular app-!-colour-muted\">#{current_user.email}</span>"
expect(user_cell(current_user)).to match(expected_html)
expect(CGI.unescapeHTML(user_cell(current_user))).to match(expected_html)
end
end

Loading…
Cancel
Save