@@ -93,7 +93,7 @@ describe('ProductTrainingContextProvider', () => {
93
93
Onyx . merge ( ONYXKEYS . IS_LOADING_APP , true ) ;
94
94
await waitForBatchedUpdatesWithAct ( ) ;
95
95
96
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
96
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
97
97
const { result} = renderHook ( ( ) => useProductTrainingContext ( testTooltip ) , { wrapper} ) ;
98
98
99
99
// Then tooltip should not show
@@ -105,7 +105,7 @@ describe('ProductTrainingContextProvider', () => {
105
105
Onyx . merge ( ONYXKEYS . NVP_ONBOARDING , { hasCompletedGuidedSetupFlow : false } ) ;
106
106
await waitForBatchedUpdatesWithAct ( ) ;
107
107
108
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
108
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
109
109
const { result} = renderHook ( ( ) => useProductTrainingContext ( testTooltip ) , { wrapper} ) ;
110
110
111
111
// Then tooltip should not show
@@ -117,15 +117,15 @@ describe('ProductTrainingContextProvider', () => {
117
117
Onyx . merge ( ONYXKEYS . NVP_ONBOARDING , { hasCompletedGuidedSetupFlow : true } ) ;
118
118
await waitForBatchedUpdatesWithAct ( ) ;
119
119
120
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
120
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
121
121
const { result} = renderHook ( ( ) => useProductTrainingContext ( testTooltip ) , { wrapper} ) ;
122
122
123
123
// Then tooltip should show
124
124
expect ( result . current . shouldShowProductTrainingTooltip ) . toBe ( true ) ;
125
125
} ) ;
126
126
127
127
it ( 'should keep tooltip visible when another tooltip with shouldShow=false is unmounted' , async ( ) => {
128
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
128
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
129
129
const ref = createRef < ProductTrainingRef > ( ) ;
130
130
131
131
// When multiple tooltips with the same name but different shouldShow values are rendered
@@ -178,7 +178,7 @@ describe('ProductTrainingContextProvider', () => {
178
178
await waitForBatchedUpdatesWithAct ( ) ;
179
179
180
180
// Then tooltips should not show
181
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
181
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . BOTTOM_NAV_INBOX_TOOLTIP ;
182
182
const { result} = renderHook ( ( ) => useProductTrainingContext ( testTooltip ) , { wrapper} ) ;
183
183
184
184
// Expect tooltip to be hidden
@@ -197,7 +197,7 @@ describe('ProductTrainingContextProvider', () => {
197
197
} ) ;
198
198
await waitForBatchedUpdatesWithAct ( ) ;
199
199
200
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
200
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . BOTTOM_NAV_INBOX_TOOLTIP ;
201
201
const { result} = renderHook ( ( ) => useProductTrainingContext ( testTooltip ) , { wrapper} ) ;
202
202
203
203
// Then tooltip should show
@@ -210,7 +210,7 @@ describe('ProductTrainingContextProvider', () => {
210
210
// When a tooltip has been dismissed
211
211
const date = new Date ( ) ;
212
212
Onyx . merge ( ONYXKEYS . NVP_ONBOARDING , { hasCompletedGuidedSetupFlow : true } ) ;
213
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
213
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
214
214
Onyx . merge ( ONYXKEYS . NVP_DISMISSED_PRODUCT_TRAINING , {
215
215
migratedUserWelcomeModal : {
216
216
timestamp : DateUtils . getDBTime ( date . valueOf ( ) ) ,
@@ -237,7 +237,7 @@ describe('ProductTrainingContextProvider', () => {
237
237
} ,
238
238
} ) ;
239
239
await waitForBatchedUpdatesWithAct ( ) ;
240
- const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
240
+ const testTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
241
241
const { result, rerender} = renderHook ( ( ) => useProductTrainingContext ( testTooltip ) , { wrapper} ) ;
242
242
// When the user dismiss the tooltip
243
243
result . current . hideProductTrainingTooltip ( ) ;
@@ -295,8 +295,8 @@ describe('ProductTrainingContextProvider', () => {
295
295
await waitForBatchedUpdatesWithAct ( ) ;
296
296
297
297
// Then only highest priority tooltip should show
298
- const highPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
299
- const lowPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . LHN_WORKSPACE_CHAT_TOOLTIP ;
298
+ const highPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP_MANAGER ;
299
+ const lowPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
300
300
301
301
const { result} = renderHook (
302
302
( ) => ( {
@@ -315,8 +315,8 @@ describe('ProductTrainingContextProvider', () => {
315
315
// When higher priority tooltip is dismissed
316
316
Onyx . merge ( ONYXKEYS . NVP_ONBOARDING , { hasCompletedGuidedSetupFlow : true } ) ;
317
317
const date = new Date ( ) ;
318
- const highPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
319
- const lowPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . LHN_WORKSPACE_CHAT_TOOLTIP ;
318
+ const highPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP_MANAGER ;
319
+ const lowPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
320
320
321
321
Onyx . merge ( ONYXKEYS . NVP_DISMISSED_PRODUCT_TRAINING , {
322
322
migratedUserWelcomeModal : {
@@ -353,8 +353,8 @@ describe('ProductTrainingContextProvider', () => {
353
353
} ) ;
354
354
await waitForBatchedUpdatesWithAct ( ) ;
355
355
356
- const highPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . GLOBAL_CREATE_TOOLTIP ;
357
- const lowPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . LHN_WORKSPACE_CHAT_TOOLTIP ;
356
+ const highPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP_MANAGER ;
357
+ const lowPriorityTooltip = CONST . PRODUCT_TRAINING_TOOLTIP_NAMES . SCAN_TEST_TOOLTIP ;
358
358
359
359
const { result} = renderHook (
360
360
( ) => ( {
0 commit comments