Skip to content

Commit

Permalink
Update macro tests to allow running of specific tests (#3361)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar authored Sep 24, 2024
1 parent 78a3f55 commit 63ca1b4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/access-code/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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');
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/back-to-top/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
2 changes: 1 addition & 1 deletion src/components/browser-banner/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', {}));
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 63ca1b4

Please sign in to comment.