diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-09 13:33:30 -0200 |
---|---|---|
committer | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-09 13:33:30 -0200 |
commit | 2bfd4b8da51310da0e11d87f64f57990d93d79e0 (patch) | |
tree | b23562755af9703bf1b0d2b2b1c0682839542f0d /web-ui/test/unit/backup_account/page.spec.js | |
parent | b2676a1f407ecf05cb0b511e563d21b4e2a0ee61 (diff) |
[#922] Rename backup account flow
To differentiate between the account recovery flow and the set backup email
flow, we renamed all resources and url to reflect this. with @anikarni
Diffstat (limited to 'web-ui/test/unit/backup_account/page.spec.js')
-rw-r--r-- | web-ui/test/unit/backup_account/page.spec.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/web-ui/test/unit/backup_account/page.spec.js b/web-ui/test/unit/backup_account/page.spec.js new file mode 100644 index 00000000..66d2dc78 --- /dev/null +++ b/web-ui/test/unit/backup_account/page.spec.js @@ -0,0 +1,25 @@ +import { shallow } from 'enzyme'; +import expect from 'expect'; +import React from 'react'; +import { Page } from 'src/backup_account/page'; + +describe('Page', () => { + let page; + + beforeEach(() => { + const mockTranslations = key => key; + page = shallow(<Page t={mockTranslations} />); + }); + + it('renders backup email page title', () => { + expect(page.find('h1').text()).toEqual('backup-account.title'); + }); + + it('renders backup account email input field', () => { + expect(page.find('InputField').props().name).toEqual('email'); + }); + + it('renders backup account submit button', () => { + expect(page.find('SubmitButton').props().buttonText).toEqual('backup-account.button'); + }); +}); |