Skip to content

Commit 4621945

Browse files
committed
[rb] remove assertions in virtual authenticator tests
Chrome 117 started returning the same values for rpId and userHandle in both resident and non-resident credentials. This behavior is not evaluated in wpt tests, so removing the checks in Selenium.
1 parent ab1fe36 commit 4621945

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

rb/spec/integration/selenium/webdriver/virtual_authenticator_spec.rb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,17 +194,10 @@ def credential(id)
194194
expect(credentials.length).to eq(2)
195195

196196
res_cred_output = credentials.find { |cred| Credential.encode(cred.id).match res_cred_resp['id'] }
197-
non_res_cred_output = credentials.tap { |cred| cred.delete(res_cred_output) }.first
197+
non_res_cred_output = credentials.find { |cred| cred != res_cred_output }
198198

199199
expect(res_cred_output.resident_credential?).to be true
200-
expect(res_cred_output.rp_id).to eq 'localhost'
201-
expect(res_cred_output.sign_count).to eq 1
202-
expect(res_cred_output.user_handle).to eq [1]
203-
204200
expect(non_res_cred_output.resident_credential?).to be false
205-
expect(non_res_cred_output.rp_id).to be_nil
206-
expect(non_res_cred_output.sign_count).to eq 1
207-
expect(non_res_cred_output.user_handle).to be_nil
208201
end
209202
end
210203

0 commit comments

Comments
 (0)