From 920d367456ba9263a055087d08cbd207a1f4c7a2 Mon Sep 17 00:00:00 2001 From: Richard McCarthy Date: Tue, 10 Sep 2024 15:15:49 +0100 Subject: [PATCH] update snapshot --- __snapshots__/layout/_template.spec.js.snap | 53 +++++---------------- src/components/list/example-bare-list.njk | 21 ++++---- 2 files changed, 21 insertions(+), 53 deletions(-) diff --git a/__snapshots__/layout/_template.spec.js.snap b/__snapshots__/layout/_template.spec.js.snap index cde4655d54..234f8d23a9 100644 --- a/__snapshots__/layout/_template.spec.js.snap +++ b/__snapshots__/layout/_template.spec.js.snap @@ -1395,7 +1395,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - @@ -1406,7 +1405,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` -
  • @@ -1414,15 +1412,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - About our surveys + About our surveys
  • -
  • @@ -1430,15 +1426,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Lists of all surveys + Lists of all surveys
  • -
  • @@ -1446,8 +1440,7 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Respondent Charter + Respondent Charter
  • @@ -1471,7 +1464,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - @@ -1482,7 +1474,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` -
  • @@ -1490,15 +1481,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - What we do + What we do
  • -
  • @@ -1506,15 +1495,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Transparency and governance + Transparency and governance
  • -
  • @@ -1522,8 +1509,7 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Contact us + Contact us
  • @@ -1547,7 +1533,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - @@ -1558,7 +1543,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` -
  • @@ -1580,7 +1564,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` -
  • @@ -1588,15 +1571,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Release calendar + Release calendar
  • -
  • @@ -1604,8 +1585,7 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - News + News
  • @@ -1638,7 +1618,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - @@ -1649,7 +1628,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` -
  • @@ -1657,15 +1635,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Cookies + Cookies
  • -
  • @@ -1673,15 +1649,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Accessibility statement + Accessibility statement
  • -
  • @@ -1689,15 +1663,13 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Privacy and data protection + Privacy and data protection
  • -
  • @@ -1705,8 +1677,7 @@ exports[`base page template matches the full configuration snapshot 1`] = ` - - Terms and conditions + Terms and conditions
  • diff --git a/src/components/list/example-bare-list.njk b/src/components/list/example-bare-list.njk index 904d2f9120..f3e1999389 100644 --- a/src/components/list/example-bare-list.njk +++ b/src/components/list/example-bare-list.njk @@ -1,20 +1,17 @@ {% from "components/list/_macro.njk" import onsList %} {{ onsList({ - "variants": 'bare', + "element": "ol", + "attributes": { + "data-qa": "error-list" + }, "itemsList": [ { - "url": '#0', - "text": 'Who we are' - }, - { - "url": '#0', - "text": 'What we do' - }, - { - "url": 'https://goo.gl/maps/ULnVRd16zfFLZWdt7', - "text": 'Where to find us', - "external": true + "url": "#0", + "text": 'Who we are', + "attributes": { + "data-qa": "error-list-1" + } } ] })