The current onboarding CFR is set to show the first time someone
lands on a product detail page. If the user dismisses the CFR and
does not opt-in, we show it on the next product detail page after at
least 24 hours have elapsed.
This patch changes this to showing the CFR up to 3X (instead of 2)
with at least 12 hrs in-between (instead of 24).
(cherry picked from commit dddeecc082a9be8dcc53caddc5bec79753fff9bb)
@ -359,7 +359,7 @@ class BrowserToolbarCFRPresenterTest {
}
@Test
fun`GIVEN the first CFR was displayed less than 24h ago AND the user did not opt in to the shopping feature WHEN opening a loaded product page THEN no shopping CFR is shown`(){
fun`GIVEN the first CFR was displayed less than 12h ago AND the user did not opt in to the shopping feature WHEN opening a loaded product page THEN no shopping CFR is shown`(){
valtab1=createTab(url="",id="tab1")
valbrowserStore=BrowserStore(
initialState=BrowserState(
@ -374,7 +374,7 @@ class BrowserToolbarCFRPresenterTest {
@ -386,7 +386,7 @@ class BrowserToolbarCFRPresenterTest {
}
@Test
fun`GIVEN the first CFR was displayed 24h ago AND the user did not opt in to the shopping feature WHEN opening a loaded product page THEN the first shopping CFR is shown`(){
fun`GIVEN the first CFR was displayed 12h ago AND the user did not opt in to the shopping feature WHEN opening a loaded product page THEN the first shopping CFR is shown`(){
valtab1=createTab(url="",id="tab1")
valtab2=createTab(url="",id="tab2")
valbrowserStore=BrowserStore(
@ -402,7 +402,7 @@ class BrowserToolbarCFRPresenterTest {