Allow explicit browser search fill
This commit is contained in:
@@ -149,3 +149,24 @@ test("applyBestMatchOnly preserves all matches when disabled", () => {
|
||||
|
||||
assert.deepEqual(filtered.map((match) => match.id), ["livingston", "rusty"]);
|
||||
});
|
||||
|
||||
test("matched login credential requests include the page URL for URL validation", () => {
|
||||
assert.deepEqual(background.matchedLoginCredentialRequest({
|
||||
bearerToken: "token-1"
|
||||
}, "vault-console", "https://bellagio.example.invalid/login"), {
|
||||
action: "get-login",
|
||||
bearerToken: "token-1",
|
||||
entryId: "vault-console",
|
||||
url: "https://bellagio.example.invalid/login"
|
||||
});
|
||||
});
|
||||
|
||||
test("explicit selected credential requests omit the page URL", () => {
|
||||
assert.deepEqual(background.selectedLoginCredentialRequest({
|
||||
bearerToken: "token-1"
|
||||
}, "no-url-entry"), {
|
||||
action: "get-login",
|
||||
bearerToken: "token-1",
|
||||
entryId: "no-url-entry"
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user