@defra/lis-infra-ui-services 0.27.0 → 0.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/lis-infra-ui-services",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "UI-Services shared definitions for the livestock taxonomy topology.",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -68,10 +68,9 @@
68
68
  {% block headerEnd %}
69
69
  {{ govukPhaseBanner({
70
70
  tag: {
71
- html: "<b>Steel Thread</b>",
72
- classes: "govuk-tag--grey"
71
+ text: "Alpha"
73
72
  },
74
- html: 'A thin slice of functionality, built to prove the system works end to end.'
73
+ text: "This is a new service – your feedback will help us to improve it."
75
74
  }) }}
76
75
  {% endblock %}
77
76
 
@@ -47,6 +47,20 @@ describe('base layout', () => {
47
47
  expect(headerHtml).toContain('govuk-phase-banner')
48
48
  })
49
49
 
50
+ test('renders the alpha phase banner', () => {
51
+ // Act
52
+ const html = render()
53
+
54
+ // Assert
55
+ expect(html).toMatch(
56
+ /<strong class="govuk-tag govuk-phase-banner__content__tag">\s*Alpha\s*<\/strong>/
57
+ )
58
+ expect(html).toContain(
59
+ 'This is a new service – your feedback will help us to improve it.'
60
+ )
61
+ expect(html).not.toContain('Steel Thread')
62
+ })
63
+
50
64
  test('renders one footer landmark wrapping the footer', () => {
51
65
  // Act
52
66
  const html = render()