From 63ca1b4ee8078a47eb7cd3da3a57ff195c28cab2 Mon Sep 17 00:00:00 2001 From: rmccar <42928680+rmccar@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:28:40 +0100 Subject: [PATCH] Update macro tests to allow running of specific tests (#3361) --- src/components/access-code/_macro.spec.js | 4 ++-- src/components/back-to-top/_macro.spec.js | 2 +- src/components/browser-banner/_macro.spec.js | 2 +- src/components/header/_macro.spec.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/access-code/_macro.spec.js b/src/components/access-code/_macro.spec.js index f592f88704..bfe53a607e 100644 --- a/src/components/access-code/_macro.spec.js +++ b/src/components/access-code/_macro.spec.js @@ -5,7 +5,7 @@ import * as cheerio from 'cheerio'; import axe from '../../tests/helpers/axe'; import { renderComponent } from '../../tests/helpers/rendering'; -describe('FOR: access-code', () => { +describe('FOR: Macro: Access-code', () => { describe('GIVEN: Params: required', () => { describe('WHEN: all required params are provided', () => { const $ = cheerio.load( @@ -24,7 +24,7 @@ describe('FOR: access-code', () => { test('THEN: autocomplete is disabled on text input', () => { expect($('input').attr('autocomplete')).toBe('off'); }); - test('THEN: text input has automatic capitalisation', () => { + test('THEN: text input has autocapitalize attribute', () => { expect($('input').attr('autocapitalize')).toBe('characters'); }); }); diff --git a/src/components/back-to-top/_macro.spec.js b/src/components/back-to-top/_macro.spec.js index a8ac0b81eb..122d592d2f 100644 --- a/src/components/back-to-top/_macro.spec.js +++ b/src/components/back-to-top/_macro.spec.js @@ -5,7 +5,7 @@ import * as cheerio from 'cheerio'; import axe from '../../tests/helpers/axe'; import { renderComponent } from '../../tests/helpers/rendering'; -describe('FOR: Back-to-top', () => { +describe('FOR: Macro: Back-to-top', () => { describe('GIVEN: Params: default', () => { describe('WHEN: params are at default', () => { const $ = cheerio.load(renderComponent('back-to-top')); diff --git a/src/components/browser-banner/_macro.spec.js b/src/components/browser-banner/_macro.spec.js index 518213f577..7a00b4e293 100644 --- a/src/components/browser-banner/_macro.spec.js +++ b/src/components/browser-banner/_macro.spec.js @@ -5,7 +5,7 @@ import * as cheerio from 'cheerio'; import axe from '../../tests/helpers/axe'; import { renderComponent } from '../../tests/helpers/rendering'; -describe('FOR: browser-banner', () => { +describe('FOR: Macro: Browser-banner', () => { describe('GIVEN: Params: default', () => { describe('WHEN: params are at default state', () => { const $ = cheerio.load(renderComponent('browser-banner', {})); diff --git a/src/components/header/_macro.spec.js b/src/components/header/_macro.spec.js index 7d33e1c814..3c8170b89c 100644 --- a/src/components/header/_macro.spec.js +++ b/src/components/header/_macro.spec.js @@ -16,7 +16,7 @@ import { EXAMPLE_HEADER_NAVIGATION_WITH_SITESEARCHAUTOSUGGEST, } from './_test-examples'; -describe('FOR: Header', () => { +describe('FOR: Macro: Header', () => { describe('GIVEN: Params: none', () => { describe('WHEN: All params are at default state', () => { const $ = cheerio.load(