summaryrefslogtreecommitdiff
path: root/spec/support/helpers/fake_u2f_device.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/fake_u2f_device.rb')
-rw-r--r--spec/support/helpers/fake_u2f_device.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/fake_u2f_device.rb b/spec/support/helpers/fake_u2f_device.rb
index a7605cd483a..22cd8152d77 100644
--- a/spec/support/helpers/fake_u2f_device.rb
+++ b/spec/support/helpers/fake_u2f_device.rb
@@ -32,6 +32,10 @@ class FakeU2fDevice
")
end
+ def fake_u2f_authentication
+ @page.execute_script("window.gl.u2fAuthenticate.renderAuthenticated('abc');")
+ end
+
private
def u2f_device(app_id)