[PM-12775] Fixing an issue where the collection of page details on load is not delaying enough
This commit is contained in:
parent
6f38267516
commit
ec3f63d3e9
|
@ -74,7 +74,7 @@ describe("AutofillInit", () => {
|
|||
Object.defineProperty(document, "readyState", { value: "complete", writable: true });
|
||||
|
||||
autofillInit.init();
|
||||
jest.advanceTimersByTime(250);
|
||||
jest.advanceTimersByTime(750);
|
||||
|
||||
expect(sendExtensionMessageSpy).toHaveBeenCalledWith("bgCollectPageDetails", {
|
||||
sender: "autofillInit",
|
||||
|
|
|
@ -78,7 +78,7 @@ class AutofillInit implements AutofillInitInterface {
|
|||
this.clearCollectPageDetailsOnLoadTimeout();
|
||||
this.collectPageDetailsOnLoadTimeout = setTimeout(
|
||||
() => this.sendExtensionMessage("bgCollectPageDetails", { sender: "autofillInit" }),
|
||||
250,
|
||||
750,
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue