@@ -8,6 +8,8 @@ import type {
88import type { WorkspaceTokenResponse } from '@/platform/workspace/stores/workspaceAuthStore'
99import type { operations } from '@/types/comfyRegistryTypes'
1010import { comfyPageFixture } from '@e2e/fixtures/ComfyPage'
11+ import { APP_URL , setupCloudApp } from '@e2e/fixtures/utils/cloudAppSetup'
12+ import { workspace } from '@e2e/fixtures/utils/workspaceMocks'
1113
1214type CustomerBalanceResponse = NonNullable <
1315 operations [ 'GetCustomerBalance' ] [ 'responses' ] [ '200' ] [ 'content' ] [ 'application/json' ]
@@ -164,4 +166,36 @@ test.describe('Current user popover credits row', { tag: '@cloud' }, () => {
164166 const resubscribeRight = resubscribeBox ! . x + resubscribeBox ! . width
165167 expect ( resubscribeRight ) . toBeLessThanOrEqual ( popoverRight )
166168 } )
169+
170+ test (
171+ 'renders Manage plan as a plain full-width menu row' ,
172+ { tag : '@screenshot' } ,
173+ async ( { page } ) => {
174+ test . setTimeout ( 60_000 )
175+ await setupCloudApp ( page , {
176+ workspace : workspace ( 'personal' , 'owner' ) ,
177+ features : { subscription_required : false }
178+ } )
179+ await page . goto ( APP_URL )
180+ await page . waitForFunction ( ( ) => ! ! window . app ?. extensionManager , null , {
181+ timeout : 45_000
182+ } )
183+ await page . getByRole ( 'button' , { name : 'Close dialog' } ) . click ( )
184+ await expect ( page . getByTestId ( 'dialog-overlay' ) ) . toBeHidden ( )
185+
186+ await page . getByRole ( 'button' , { name : 'Current user' } ) . click ( )
187+
188+ const managePlan = page . getByRole ( 'button' , { name : 'Manage plan' } )
189+ await expect ( managePlan ) . toBeVisible ( )
190+ await expect ( managePlan ) . toHaveScreenshot ( 'manage-plan-menu-item.png' )
191+
192+ await managePlan . focus ( )
193+ await page . keyboard . press ( 'Shift+Tab' )
194+ await page . keyboard . press ( 'Tab' )
195+ await expect ( managePlan ) . toBeFocused ( )
196+ await expect ( managePlan ) . toHaveScreenshot (
197+ 'manage-plan-menu-item-focused.png'
198+ )
199+ }
200+ )
167201} )
0 commit comments