@@ -352,59 +352,6 @@ define(function (require, exports, module) {
352352 expect ( capturedBrowserURL ) . toContain ( 'test-session-123' ) ;
353353 } ) ;
354354
355- it ( "should show correct popup states" , async function ( ) {
356- // Setup basic user mock
357- setupProUserMock ( false ) ;
358-
359- const $profileButton = testWindow . $ ( "#user-profile-button" ) ;
360-
361- // Test initial state - should show signin popup
362- $profileButton . trigger ( 'click' ) ;
363- await popupToAppear ( SIGNIN_POPUP ) ;
364-
365- let popupContent = testWindow . $ ( '.profile-popup' ) ;
366- const signInButton = popupContent . find ( '#phoenix-signin-btn' ) ;
367- const signOutButton = popupContent . find ( '#phoenix-signout-btn' ) ;
368-
369- expect ( signInButton . length ) . toBe ( 1 ) ;
370- expect ( signOutButton . length ) . toBe ( 0 ) ;
371-
372- // Close popup
373- $profileButton . trigger ( 'click' ) ;
374-
375- // Perform login
376- await performFullLoginFlow ( ) ;
377-
378- // Test logged in state - should show profile popup
379- $profileButton . trigger ( 'click' ) ;
380- await popupToAppear ( PROFILE_POPUP ) ;
381-
382- popupContent = testWindow . $ ( '.profile-popup' ) ;
383- const newSignInButton = popupContent . find ( '#phoenix-signin-btn' ) ;
384- const newSignOutButton = popupContent . find ( '#phoenix-signout-btn' ) ;
385-
386- expect ( newSignInButton . length ) . toBe ( 0 ) ;
387- expect ( newSignOutButton . length ) . toBe ( 1 ) ;
388-
389- // Close popup and logout for cleanup
390- $profileButton . trigger ( 'click' ) ;
391- await performFullLogoutFlow ( ) ;
392-
393- // Test final state - should be back to signin popup
394- $profileButton . trigger ( 'click' ) ;
395- await popupToAppear ( SIGNIN_POPUP ) ;
396-
397- popupContent = testWindow . $ ( '.profile-popup' ) ;
398- const finalSignInButton = popupContent . find ( '#phoenix-signin-btn' ) ;
399- const finalSignOutButton = popupContent . find ( '#phoenix-signout-btn' ) ;
400-
401- expect ( finalSignInButton . length ) . toBe ( 1 ) ;
402- expect ( finalSignOutButton . length ) . toBe ( 0 ) ;
403-
404- // Close popup
405- $profileButton . trigger ( 'click' ) ;
406- } ) ;
407-
408355 it ( "should show pro branding for user with pro subscription (expired trial)" , async function ( ) {
409356 console . log ( "llgT: Starting desktop pro user with expired trial test" ) ;
410357
0 commit comments