From 582eed968fd5d91c902be53c76c783e0d1e53014 Mon Sep 17 00:00:00 2001 From: enzigma-pratishtha-upadhyay Date: Tue, 12 Mar 2024 17:17:37 +0530 Subject: [PATCH 1/2] Updated the maxNumberOfIntervals from 5 to 20 Updated the maxNumberOfIntervals from 5 to 20 so that it will continue to call focusOnGauLookup function to have the gau-lookup field as focused after adding a new row entry through add allocation button. --- force-app/main/default/lwc/utilCommon/utilCommon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/lwc/utilCommon/utilCommon.js b/force-app/main/default/lwc/utilCommon/utilCommon.js index efd2291082f..16983ad1df4 100644 --- a/force-app/main/default/lwc/utilCommon/utilCommon.js +++ b/force-app/main/default/lwc/utilCommon/utilCommon.js @@ -638,7 +638,7 @@ const nonePicklistOption = () => { return createPicklistOption(commonLabelNone, commonLabelNone); } -const asyncInterval = async (callback, milliseconds, maxNumberOfIntervals = 5) => { +const asyncInterval = async (callback, milliseconds, maxNumberOfIntervals = 20) => { return new Promise((resolve, reject) => { const intervalId = setInterval(async () => { if (await callback()) { From a60b430b52a13102cd6c3a2991a669af03b531bf Mon Sep 17 00:00:00 2001 From: Reede Stockton Date: Tue, 16 Apr 2024 14:20:19 -0700 Subject: [PATCH 2/2] Check for isActive on test user for runAs --- force-app/main/default/classes/CON_ContactMerge_TEST.cls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/force-app/main/default/classes/CON_ContactMerge_TEST.cls b/force-app/main/default/classes/CON_ContactMerge_TEST.cls index 18c81a6d9d3..22764e53f0f 100644 --- a/force-app/main/default/classes/CON_ContactMerge_TEST.cls +++ b/force-app/main/default/classes/CON_ContactMerge_TEST.cls @@ -967,7 +967,8 @@ public class CON_ContactMerge_TEST { } private static User getReadOnlyUser() { - return [SELECT Id FROM User WHERE Profile.Name = :UTIL_UnitTestData_TEST.PROFILE_READONLY_USER LIMIT 1]; + return [SELECT Id FROM User WHERE Profile.Name = :UTIL_UnitTestData_TEST.PROFILE_READONLY_USER + AND IsActive = TRUE LIMIT 1]; } private static void selectSearchResults(List searchResults) {