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 b4b0337e6..464b22a37 100644 --- a/components/x-follow-button/__tests__/x-follow-button.test.jsx +++ b/components/x-follow-button/__tests__/x-follow-button.test.jsx @@ -76,14 +76,16 @@ describe('x-follow-button', () => { expect(subject.find('button').prop('aria-pressed')).toEqual('true') }) - it('button title is "Remove ConceptName from myFT"', () => { + it('button title is "Added ConceptName to myFT: click to remove"', () => { const subject = mount() - expect(subject.find('button').prop('title')).toEqual('Remove ConceptName from myFT') + expect(subject.find('button').prop('title')).toEqual('Added ConceptName to myFT: click to remove') }) - it('button aria-label is "Remove conceptName from myFT"', () => { + it('button aria-label is "Added ConceptName to myFT: click to remove"', () => { const subject = mount() - expect(subject.find('button').prop('aria-label')).toEqual('Remove ConceptName from myFT') + expect(subject.find('button').prop('aria-label')).toEqual( + 'Added ConceptName to myFT: click to remove' + ) }) }) @@ -98,14 +100,14 @@ describe('x-follow-button', () => { expect(subject.find('button').prop('aria-pressed')).toEqual('false') }) - it('button title is "Add ConceptName to myFT"', () => { + it('button title is "Add to myFT: ConceptName"', () => { const subject = mount() - expect(subject.find('button').prop('title')).toEqual('Add ConceptName to myFT') + expect(subject.find('button').prop('title')).toEqual('Add to myFT: ConceptName') }) - it('button aria-label is "Add ConceptName to myFT"', () => { + it('button aria-label is "Add to myFT: ConceptName"', () => { const subject = mount() - expect(subject.find('button').prop('aria-label')).toEqual('Add ConceptName to myFT') + expect(subject.find('button').prop('aria-label')).toEqual('Add to myFT: ConceptName') }) }) })