@@ -462,8 +462,8 @@ test.describe('Complete Zendesk Widget Flow', () => {
462462 await expect ( confirmButton ) . toBeVisible ( ) ;
463463 await confirmButton . click ( ) ;
464464
465- // Wait for page reload (burn animation completes)
466- // The reload happens after ZENDESK_RESET_DELAY_MS (1000ms) + burn animation
465+ // Wait for page reset (burn animation completes)
466+ // The reset happens after ZENDESK_RESET_DELAY_MS (1000ms) + burn animation
467467 await page . waitForLoadState ( 'networkidle' ) ;
468468
469469 // Verify we're back at the chat screen (consent is persisted, so "New Chat"
@@ -474,8 +474,8 @@ test.describe('Complete Zendesk Widget Flow', () => {
474474 await expect ( page . getByTestId ( LOAD_ZD_BUTTON_TEST_ID ) ) . toBeVisible ( ) ;
475475
476476 // Verify storage is cleared (except consent which persists)
477- // @note : Storage clearing happens in resetWidget callback before reload .
478- // After reload , localStorage should only contain ddg_consent. All other
477+ // @note : Storage clearing happens in resetWidget callback before reset .
478+ // After reset , localStorage should only contain ddg_consent. All other
479479 // keys should be removed. We verify that our test keys are gone and only
480480 // consent remains, which confirms the clear() was called.
481481 const storageState = await page . evaluate ( ( ) => {
@@ -533,7 +533,7 @@ test.describe('Complete Zendesk Widget Flow', () => {
533533 // Verify only ddg_consent remains
534534 expect ( storageStateRetry . localStorage . count ) . toBe ( 1 ) ;
535535 } else {
536- // Storage was cleared before reload - verify it's still cleared
536+ // Storage was cleared before reset - verify it's still cleared
537537 expect ( storageState . localStorage . hasTestKey ) . toBe ( false ) ;
538538 expect ( storageState . sessionStorage . hasTestKey ) . toBe ( false ) ;
539539 // SessionStorage should be completely empty
@@ -546,8 +546,7 @@ test.describe('Complete Zendesk Widget Flow', () => {
546546 expect ( storageState . localStorage . count ) . toBe ( 1 ) ;
547547 }
548548
549- // After reload and state reset, loadWidget should be false, so no widget
550- // should render
549+ // After state reset, loadWidget should be false, so no widget should render
551550 const widgetRendered = await page . evaluate ( ( ) => {
552551 const container = document . querySelector ( '#messaging-container' ) ;
553552
0 commit comments