Skip to content

Commit ee97aad

Browse files
committed
[js] update the doc in virtual_authenticator.md
1 parent f50ca21 commit ee97aad

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,10 @@ suite(function(env) {
193193
assert.equal(0, credentialList.length);
194194
});
195195

196+
it('Set is user verified', async function() {
197+
options.setIsUserVerified(true);
198+
199+
assert(options['_isUserVerified'] === true);
200+
});
196201
});
197202
}, { browsers: [Browser.CHROME]});

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.en.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Creates a resident (stateless) credential with the given required credential [pa
135135
{{< badge-code >}}
136136
{{< /tab >}}
137137
{{< tab header="JavaScript" >}}
138-
{{< badge-code >}}
138+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}}
139139
{{< /tab >}}
140140
{{< tab header="Kotlin" >}}
141141
{{< badge-code >}}
@@ -160,7 +160,7 @@ Registers the credential with the authenticator.
160160
{{< badge-code >}}
161161
{{< /tab >}}
162162
{{< tab header="JavaScript" >}}
163-
{{< badge-code >}}
163+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}}
164164
{{< /tab >}}
165165
{{< tab header="Kotlin" >}}
166166
{{< badge-code >}}
@@ -185,7 +185,7 @@ Returns the list of credentials owned by the authenticator.
185185
{{< badge-code >}}
186186
{{< /tab >}}
187187
{{< tab header="JavaScript" >}}
188-
{{< badge-code >}}
188+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}}
189189
{{< /tab >}}
190190
{{< tab header="Kotlin" >}}
191191
{{< badge-code >}}
@@ -236,7 +236,7 @@ Removes all the credentials from the authenticator.
236236
{{< badge-code >}}
237237
{{< /tab >}}
238238
{{< tab header="JavaScript" >}}
239-
{{< badge-code >}}
239+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}}
240240
{{< /tab >}}
241241
{{< tab header="Kotlin" >}}
242242
{{< badge-code >}}
@@ -261,7 +261,7 @@ Sets whether the authenticator will simulate success or fail on user verificatio
261261
{{< badge-code >}}
262262
{{< /tab >}}
263263
{{< tab header="JavaScript" >}}
264-
{{< badge-code >}}
264+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}}
265265
{{< /tab >}}
266266
{{< tab header="Kotlin" >}}
267267
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.ja.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ Creates a resident (stateless) credential with the given required credential [pa
140140
{{< badge-code >}}
141141
{{< /tab >}}
142142
{{< tab header="JavaScript" >}}
143+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}}
143144
{{< /tab >}}
144145
{{< tab header="Kotlin" >}}
145146
{{< badge-code >}}
@@ -163,6 +164,7 @@ Registers the credential with the authenticator.
163164
{{< badge-code >}}
164165
{{< /tab >}}
165166
{{< tab header="JavaScript" >}}
167+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}}
166168
{{< /tab >}}
167169
{{< tab header="Kotlin" >}}
168170
{{< badge-code >}}
@@ -186,6 +188,7 @@ Returns the list of credentials owned by the authenticator.
186188
{{< badge-code >}}
187189
{{< /tab >}}
188190
{{< tab header="JavaScript" >}}
191+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}}
189192
{{< /tab >}}
190193
{{< tab header="Kotlin" >}}
191194
{{< badge-code >}}
@@ -234,6 +237,7 @@ Removes all the credentials from the authenticator.
234237
{{< badge-code >}}
235238
{{< /tab >}}
236239
{{< tab header="JavaScript" >}}
240+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}}
237241
{{< /tab >}}
238242
{{< tab header="Kotlin" >}}
239243
{{< badge-code >}}
@@ -257,6 +261,7 @@ Sets whether the authenticator will simulate success or fail on user verificatio
257261
{{< badge-code >}}
258262
{{< /tab >}}
259263
{{< tab header="JavaScript" >}}
264+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}}
260265
{{< /tab >}}
261266
{{< tab header="Kotlin" >}}
262267
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.pt-br.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Cria uma resident (stateless) credential com os requeridos [parâmetros](https:/
131131
{{< badge-code >}}
132132
{{< /tab >}}
133133
{{< tab header="JavaScript" >}}
134+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}}
134135
{{< /tab >}}
135136
{{< tab header="Kotlin" >}}
136137
{{< badge-code >}}
@@ -154,6 +155,7 @@ Registra a credencial com o autenticador.
154155
{{< badge-code >}}
155156
{{< /tab >}}
156157
{{< tab header="JavaScript" >}}
158+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}}
157159
{{< /tab >}}
158160
{{< tab header="Kotlin" >}}
159161
{{< badge-code >}}
@@ -177,6 +179,7 @@ Retorna a lista de credenciais que o autenticador possui.
177179
{{< badge-code >}}
178180
{{< /tab >}}
179181
{{< tab header="JavaScript" >}}
182+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}}
180183
{{< /tab >}}
181184
{{< tab header="Kotlin" >}}
182185
{{< badge-code >}}
@@ -225,6 +228,7 @@ Remove todas as credenciais do autenticador.
225228
{{< badge-code >}}
226229
{{< /tab >}}
227230
{{< tab header="JavaScript" >}}
231+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}}
228232
{{< /tab >}}
229233
{{< tab header="Kotlin" >}}
230234
{{< badge-code >}}
@@ -248,6 +252,7 @@ Diz se o autenticador simulará sucesso ou falha na verificação de usuário.
248252
{{< badge-code >}}
249253
{{< /tab >}}
250254
{{< tab header="JavaScript" >}}
255+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}}
251256
{{< /tab >}}
252257
{{< tab header="Kotlin" >}}
253258
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/interactions/virtual_authenticator.zh-cn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
131131
{{< badge-code >}}
132132
{{< /tab >}}
133133
{{< tab header="JavaScript" >}}
134+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L136-L140" >}}
134135
{{< /tab >}}
135136
{{< tab header="Kotlin" >}}
136137
{{< badge-code >}}
@@ -154,6 +155,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
154155
{{< badge-code >}}
155156
{{< /tab >}}
156157
{{< tab header="JavaScript" >}}
158+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L131-L142" >}}
157159
{{< /tab >}}
158160
{{< tab header="Kotlin" >}}
159161
{{< badge-code >}}
@@ -177,6 +179,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
177179
{{< badge-code >}}
178180
{{< /tab >}}
179181
{{< tab header="JavaScript" >}}
182+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L154-L170" >}}
180183
{{< /tab >}}
181184
{{< tab header="Kotlin" >}}
182185
{{< badge-code >}}
@@ -225,6 +228,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
225228
{{< badge-code >}}
226229
{{< /tab >}}
227230
{{< tab header="JavaScript" >}}
231+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L181-L190" >}}
228232
{{< /tab >}}
229233
{{< tab header="Kotlin" >}}
230234
{{< badge-code >}}
@@ -248,6 +252,7 @@ Web 应用程序可以启用基于公钥的身份验证机制(称为 Web 身
248252
{{< badge-code >}}
249253
{{< /tab >}}
250254
{{< tab header="JavaScript" >}}
255+
{{< gh-codeblock path="examples/javascript/test/virtual_authenticator/virtualAuthenticator.spec.js#L197-L197" >}}
251256
{{< /tab >}}
252257
{{< tab header="Kotlin" >}}
253258
{{< badge-code >}}

0 commit comments

Comments
 (0)