diff --git a/components/x-follow-button/__tests__/x-follow-button.test.jsx b/components/x-follow-button/__tests__/x-follow-button.test.jsx
index 464b22a37..77ef66f88 100644
--- a/components/x-follow-button/__tests__/x-follow-button.test.jsx
+++ b/components/x-follow-button/__tests__/x-follow-button.test.jsx
@@ -87,6 +87,11 @@ describe('x-follow-button', () => {
'Added ConceptName to myFT: click to remove'
)
})
+
+ it('button aria-label contains the visual label string', () => {
+ const subject = mount()
+ expect(subject.find('button').prop('aria-label')).toContain(subject.find('button').text())
+ })
})
describe('when false', () => {
@@ -109,6 +114,11 @@ describe('x-follow-button', () => {
const subject = mount()
expect(subject.find('button').prop('aria-label')).toEqual('Add to myFT: ConceptName')
})
+
+ it('button aria-label contains the visual label string', () => {
+ const subject = mount()
+ expect(subject.find('button').prop('aria-label')).toContain(subject.find('button').text())
+ })
})
})