Bump the test group across 1 directory with 2 updates #4744
Annotations
3 errors
Site search › tracking › should track if there are no results:
__tests__/search.test.js#L176
expect(received).toEqual(expected) // deep equality
Expected: ArrayContaining [ObjectContaining {"event": "site_search", "event_data": {"action": "no result", "text": "lorem ipsum"}}, ObjectContaining {"ecommerce": {"items": []}, "event": "view_item_list"}]
Received: [{"event": "site_search", "event_data": {"action": "results", "text": "l"}}, {"ecommerce": null}, {"ecommerce": {"items": [{"category": "Get started", "list": "l", "name": "Making labels and legends headings", "position": 1}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Links", "list": "l", "name": "Links to change a language", "position": 2}, {"category": "Styles", "list": "l", "name": "Layout", "position": 3}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Paragraphs", "list": "l", "name": "Lead paragraph", "position": 4}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Layout", "list": "l", "name": "Common layouts", "position": 5}, {"category": "Styles", "list": "l", "name": "Lists", "position": 6}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Lists", "list": "l", "name": "Bulleted lists", "position": 7}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Lists", "list": "l", "name": "Numbered lists", "position": 8}, {"category": "Components", "list": "l", "name": "Skip link", "position": 9}, {"category": "Components", "list": "l", "name": "Back link", "position": 10}, …]}, "event": "view_item_list"}, {"event": "site_search", "event_data": {"action": "results", "text": "lorem i"}}, {"ecommerce": null}, {"ecommerce": {"items": [{"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Images", "list": "lorem i", "name": "Illustrations", "position": 1}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Images", "list": "lorem i", "name": "Icons", "position": 2}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Images", "list": "lorem i", "name": "Using images to give information", "position": 3}, {"category": "Components", "list": "lorem i", "name": "Inset text", "position": 4}, {"category": "Styles", "list": "lorem i", "name": "Images", "position": 5}, {"category": "Patterns", "list": "lorem i", "name": "National Insurance numbers", "position": 6}, {"category": "Accessibility<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Accessibility strategy", "list": "lorem i", "name": "Principles for increasing accessibility", "position": 7}, {"category": "Components", "list": "lorem i", "name": "Text input", "position": 8}, {"category": "Patterns", "list": "lorem i", "name": "Equality information", "position": 9}, {"category": "Components", "list": "lorem i", "name": "Date input", "position": 10}, …]}, "event": "view_item_list"}]
at Object.toEqual (__tests__/search.test.js:176:41)
|
Site search › tracking › should block personally identifable information emails:
__tests__/search.test.js#L303
expect(received).toEqual(expected) // deep equality
Expected: ArrayContaining [ObjectContaining {"event_data": ObjectContaining {"text": "[REDACTED EMAIL]"}}]
Received: [{"event": "site_search", "event_data": {"action": "results", "text": "u"}}, {"ecommerce": null}, {"ecommerce": {"items": [{"category": "Get started", "list": "u", "name": "Updating your service to use the new type scale", "position": 1}, {"category": "Patterns", "list": "u", "name": "Create a username", "position": 2}, {"category": "Components", "list": "u", "name": "File upload", "position": 3}, {"category": "Community", "list": "u", "name": "Share findings about your users", "position": 4}, {"category": "Accessibility<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Accessibility strategy", "list": "u", "name": "Terms used in this strategy", "position": 5}, {"category": "Community", "list": "u", "name": "Upcoming components and patterns", "position": 6}, {"category": "Styles<span class=\"app-site-search__separator\" aria-hidden=\"true\">›</span>Links", "list": "u", "name": "Links without underlines", "position": 7}, {"category": "Patterns", "list": "u", "name": "Service unavailable pages", "position": 8}, {"category": "Get started", "list": "u", "name": "Understanding focus state styles", "position": 9}, {"category": "Patterns", "list": "u", "name": "Start using a service", "position": 10}, …]}, "event": "view_item_list"}, {"event": "site_search", "event_data": {"action": "no result", "text": "user@"}}, {"ecommerce": null}, {"ecommerce": {"items": []}, "event": "view_item_list"}]
at Object.toEqual (__tests__/search.test.js:303:41)
|
JavaScript tests
Process completed with exit code 1.
|