From c140a628228b4bee603730e22bd5fa7304e9f74c Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 13 Feb 2018 15:53:12 +0100 Subject: [PATCH] Fix e2e --- .../talk-plugin-auth/client/login/containers/SignUp.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/talk-plugin-auth/client/login/containers/SignUp.js b/plugins/talk-plugin-auth/client/login/containers/SignUp.js index ea19a8940..d1629db1c 100644 --- a/plugins/talk-plugin-auth/client/login/containers/SignUp.js +++ b/plugins/talk-plugin-auth/client/login/containers/SignUp.js @@ -62,6 +62,15 @@ class SignUpContainer extends Component { this.props.setView(views.SIGN_IN); }; + componentWillReceiveProps(nextProps) { + if (nextProps.success) { + setTimeout(() => { + // allow success UI to be shown for a second, and then close the modal + this.props.setView(views.SIGN_IN); + }, 2000); + } + } + render() { return (