Fixes for tests broken by changes

- corrects target page for set_email_branding to
  new preview step instead of itself
- removed check for helper method being called in
  email page test
- updates expected result for test of global
  headers to include changes to `frame-src`
- updates navigation config with brand preview page
This commit is contained in:
Tom Byers
2018-08-03 17:39:58 +01:00
parent 386105954e
commit eb72f43b3f
4 changed files with 8 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ def test_owasp_useful_headers_set(client, mocker):
"object-src 'self';"
"font-src 'self' data:;"
"img-src 'self' *.google-analytics.com *.notifications.service.gov.uk static-logos.test.com data:;"
"frame-src www.youtube.com;"
"frame-src 'self' www.youtube.com;"
)
@@ -31,5 +31,5 @@ def test_headers_non_ascii_characters_are_replaced(client, mocker):
"object-src 'self';"
"font-src 'self' data:;"
"img-src 'self' *.google-analytics.com *.notifications.service.gov.uk static-logos??.test.com data:;"
"frame-src www.youtube.com;"
"frame-src 'self' www.youtube.com;"
)