Class: Booth::Testing::Support::VirtualAuthenticators::Destroy
- Inherits:
-
Object
- Object
- Booth::Testing::Support::VirtualAuthenticators::Destroy
- Includes:
- Logging, Calls, Capybara::DSL
- Defined in:
- lib/booth/testing/support/virtual_authenticators/destroy.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/booth/testing/support/virtual_authenticators/destroy.rb', line 14 def call log { "Removing Virtual Authenticator with ID #{authenticator_id}" } page.driver.with_playwright_page do |playwright_page| cdp_session = playwright_page.context.new_cdp_session(playwright_page) cdp_session.('WebAuthn.removeVirtualAuthenticator', params: { authenticatorId: authenticator_id }) end end |