@@ -47,10 +47,10 @@ test.describe("Proxy Admin - Teams", () => {
4747 // Fill Team Name — the input has id="team_alias"
4848 await dialog . locator ( "#team_alias" ) . fill ( uniqueAlias ) ;
4949
50- // Select models — the models multi-select is inside the modal
51- // Click to open dropdown, select "All Proxy Models"
52- await dialog . locator ( ".ant-select-selection-overflow ") . first ( ) . click ( ) ;
53- await page . locator ( ".ant-select-dropdown:visible" ) . getByText ( " All Proxy Models") . click ( ) ;
50+ // Select models — the models multi-select is inside the modal. Its popup is
51+ // portaled to the body, so scope the option lookup to the page, not the dialog.
52+ await dialog . getByTestId ( "create-team-models-select ") . getByRole ( "combobox" ) . click ( ) ;
53+ await page . getByRole ( "option" , { name : " All Proxy Models", exact : true } ) . click ( ) ;
5454 await page . keyboard . press ( "Escape" ) ;
5555
5656 // Submit — click the submit button inside the dialog (not the header button)
@@ -191,11 +191,11 @@ test.describe("Proxy Admin - Teams", () => {
191191 const modelsSelect = page . locator ( "[data-testid='models-select']" ) ;
192192 await expect ( modelsSelect ) . toBeVisible ( { timeout : 10_000 } ) ;
193193
194- const anthropicTag = modelsSelect
195- . locator ( ".ant-select-selection-item" )
194+ const anthropicChip = modelsSelect
195+ . locator ( '[data-slot="combobox-chip"]' )
196196 . filter ( { hasText : "fake-anthropic-claude" } ) ;
197- await expect ( anthropicTag ) . toBeVisible ( { timeout : 5_000 } ) ;
198- await anthropicTag . locator ( ".ant-select-selection-item- remove") . click ( ) ;
197+ await expect ( anthropicChip ) . toBeVisible ( { timeout : 5_000 } ) ;
198+ await anthropicChip . locator ( '[data-slot="combobox-chip- remove"]' ) . click ( ) ;
199199
200200 await page . getByRole ( "button" , { name : "Save Changes" } ) . click ( ) ;
201201
0 commit comments