Class: Booth::Testing::Support::VirtualAuthenticators::Enable
- Inherits:
-
Object
- Object
- Booth::Testing::Support::VirtualAuthenticators::Enable
- Includes:
- Logging, Calls, Capybara::DSL
- Defined in:
- lib/booth/testing/support/virtual_authenticators/enable.rb
Overview
Start the Virtual Authenticator Environment in Chrome.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/booth/testing/support/virtual_authenticators/enable.rb', line 13 def call log { 'Ensuring enabled Chrome Virtual Authenticator Environment...' } # The Environment *randomly* leaks from test to test, disabling it first works. # All you'll see is `NotAllowedError` in the JS console if you miss this. page.driver.browser.devtools.send_cmd 'WebAuthn.disable' page.driver.browser.devtools.send_cmd 'WebAuthn.enable' end |