[PM-12775] Fixing an issue where the collection of page details on load is not delaying enough

This commit is contained in:
Cesar Gonzalez 2024-10-03 12:10:06 -05:00
parent 6f38267516
commit ec3f63d3e9
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

@ -78,7 +78,7 @@ class AutofillInit implements AutofillInitInterface {
this.clearCollectPageDetailsOnLoadTimeout();
this.collectPageDetailsOnLoadTimeout = setTimeout(
() => this.sendExtensionMessage("bgCollectPageDetails", { sender: "autofillInit" }),
250,
750,
);
};