Acceptance tests for user
This commit is contained in:
@@ -5,8 +5,6 @@ html
|
||||
localStorage.setItem('auth_token', '#{current_user.authentication_token}');
|
||||
localStorage.setItem('user_id', '#{current_user.id}');
|
||||
localStorage.setItem('locale', '#{I18n.default_locale}');
|
||||
|
||||
|
||||
body
|
||||
p Test login page
|
||||
p= "Signed in as: #{current_user.email}"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<script>
|
||||
console.log("closing window");
|
||||
window.opener.postMessage({user_id: '<%= params[:user_id] %>', authentication_token: '<%= params[:authentication_token] %>'}, "http://localhost:4200");
|
||||
window.opener.postMessage({user_id: '<%= params[:user_id] %>', authentication_token: '<%= params[:authentication_token] %>'}, "<%= user_ember_target %>");
|
||||
window.close();
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user