@@ -22,6 +22,7 @@ const virtualAuthenticatorCredential =
2222 require ( '../lib/virtual_authenticator' ) . Credential
2323const virtualAuthenticatorOptions =
2424 require ( '../lib/virtual_authenticator' ) . VirtualAuthenticatorOptions
25+ const Protocol = require ( '../lib/virtual_authenticator' ) . Protocol
2526const { ignore, suite } = require ( '../lib/test' )
2627const { Browser } = require ( '../lib/capabilities' )
2728const fileServer = require ( '../lib/test/fileserver' )
@@ -37,7 +38,7 @@ const GET_CREDENTIAL = `getCredential([{
3738async function createRkEnabledU2fAuthenticator ( driver ) {
3839 let options
3940 options = new virtualAuthenticatorOptions ( )
40- options . setProtocol ( virtualAuthenticatorOptions . Protocol [ 'U2F' ] )
41+ options . setProtocol ( Protocol [ 'U2F' ] )
4142 options . setHasResidentKey ( true )
4243 await driver . addVirtualAuthenticator ( options )
4344 return driver
@@ -46,7 +47,7 @@ async function createRkEnabledU2fAuthenticator(driver) {
4647async function createRkDisabledU2fAuthenticator ( driver ) {
4748 let options
4849 options = new virtualAuthenticatorOptions ( )
49- options . setProtocol ( virtualAuthenticatorOptions . Protocol [ 'U2F' ] )
50+ options . setProtocol ( Protocol [ 'U2F' ] )
5051 options . setHasResidentKey ( false )
5152 await driver . addVirtualAuthenticator ( options )
5253 return driver
@@ -55,7 +56,7 @@ async function createRkDisabledU2fAuthenticator(driver) {
5556async function createRkEnabledCTAP2Authenticator ( driver ) {
5657 let options
5758 options = new virtualAuthenticatorOptions ( )
58- options . setProtocol ( virtualAuthenticatorOptions . Protocol [ 'CTAP2' ] )
59+ options . setProtocol ( Protocol [ 'CTAP2' ] )
5960 options . setHasResidentKey ( true )
6061 options . setHasUserVerification ( true )
6162 options . setIsUserVerified ( true )
@@ -66,7 +67,7 @@ async function createRkEnabledCTAP2Authenticator(driver) {
6667async function createRkDisabledCTAP2Authenticator ( driver ) {
6768 let options
6869 options = new virtualAuthenticatorOptions ( )
69- options . setProtocol ( virtualAuthenticatorOptions . Protocol [ 'CTAP2' ] )
70+ options . setProtocol ( Protocol [ 'CTAP2' ] )
7071 options . setHasResidentKey ( false )
7172 options . setHasUserVerification ( true )
7273 options . setIsUserVerified ( true )
0 commit comments