mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-26 12:25:20 +01:00
[PM-10155] Fixing broken jest tests for auto-submit content script (#10512)
This commit is contained in:
parent
eb868eebd7
commit
5fad072554
@ -61,10 +61,13 @@ describe("AutoSubmitLogin content script", () => {
|
||||
|
||||
await initAutoSubmitWorkflow();
|
||||
|
||||
expect(chrome.runtime.sendMessage).toHaveBeenCalledWith({
|
||||
command: "updateIsFieldCurrentlyFilling",
|
||||
isFieldCurrentlyFilling: false,
|
||||
});
|
||||
expect(chrome.runtime.sendMessage).toHaveBeenCalledWith(
|
||||
{
|
||||
command: "updateIsFieldCurrentlyFilling",
|
||||
isFieldCurrentlyFilling: false,
|
||||
},
|
||||
expect.any(Function),
|
||||
);
|
||||
});
|
||||
|
||||
describe("when the page contains form fields", () => {
|
||||
@ -78,10 +81,13 @@ describe("AutoSubmitLogin content script", () => {
|
||||
});
|
||||
await flushPromises();
|
||||
|
||||
expect(chrome.runtime.sendMessage).toHaveBeenCalledWith({
|
||||
command: "updateIsFieldCurrentlyFilling",
|
||||
isFieldCurrentlyFilling: false,
|
||||
});
|
||||
expect(chrome.runtime.sendMessage).toHaveBeenCalledWith(
|
||||
{
|
||||
command: "updateIsFieldCurrentlyFilling",
|
||||
isFieldCurrentlyFilling: false,
|
||||
},
|
||||
expect.any(Function),
|
||||
);
|
||||
});
|
||||
|
||||
describe("triggering auto-submit on formless fields", () => {
|
||||
|
Loading…
Reference in New Issue
Block a user