summaryrefslogtreecommitdiffhomepage
path: root/test/components
diff options
context:
space:
mode:
authorErik Larkö <erik@mullvad.net>2017-09-29 11:10:35 +0200
committerErik Larkö <erik@mullvad.net>2017-10-02 07:42:14 +0200
commit62a64945d85cbd876b7b600768fe3b140bed2521 (patch)
tree3463babe55c33b7efda1d50887780f6d20ff275f /test/components
parentbe7250fade3c007132a69304d1cc68bc819d3e06 (diff)
downloadmullvadvpn-62a64945d85cbd876b7b600768fe3b140bed2521.tar.xz
mullvadvpn-62a64945d85cbd876b7b600768fe3b140bed2521.zip
Store the unsubmitted account token in the redux store
Diffstat (limited to 'test/components')
-rw-r--r--test/components/Login.spec.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/components/Login.spec.js b/test/components/Login.spec.js
index d3d38be410..9918dc6e1c 100644
--- a/test/components/Login.spec.js
+++ b/test/components/Login.spec.js
@@ -67,6 +67,9 @@ describe('components/Login', () => {
it('logs in with the entered account number when clicking the login icon', (done) => {
const component = renderNotLoggedIn();
component.setProps({
+ account: {
+ accountToken: '12345',
+ },
onLogin: (an) => {
try {
expect(an).to.equal('12345');
@@ -76,8 +79,6 @@ describe('components/Login', () => {
}
},
});
- const accountInput = component.find(AccountInput);
- setInputText(accountInput, '12345');
component.find('.login-form__submit').simulate('click');
});
@@ -97,6 +98,7 @@ const defaultProps = {
onChange: () => {},
onFirstChangeAfterFailure: () => {},
onExternalLink: () => {},
+ onAccountTokenChange: () => {},
};
function renderLoggedIn() {