Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update macro tests to allow running of specific tests #3361

Merged
merged 7 commits into from
Sep 24, 2024
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
Loading