@@ -134,10 +134,6 @@ test.describe('addon-mcp', () => {
134134 test ( 'should show both toolsets as enabled' , async ( { page } ) => {
135135 await page . goto ( MCP_ENDPOINT ) ;
136136
137- // Both toolsets should show as enabled
138- const enabledStatuses = page . locator ( '.toolset-status.enabled' ) ;
139- await expect ( enabledStatuses ) . toHaveCount ( 2 ) ;
140-
141137 // Check that dev toolset is listed with its tools
142138 const devToolset = page . locator ( '.toolset' , { has : page . locator ( 'text=dev' ) } ) ;
143139 await expect ( devToolset ) . toBeVisible ( ) ;
@@ -147,6 +143,18 @@ test.describe('addon-mcp', () => {
147143 const docsToolset = page . locator ( '.toolset' , { has : page . locator ( 'text=docs' ) } ) ;
148144 await expect ( docsToolset ) . toBeVisible ( ) ;
149145 await expect ( docsToolset . locator ( '.toolset-status' ) ) . toHaveText ( 'enabled' ) ;
146+
147+ // Check that test toolset is listed with its tools
148+ const testToolset = page . locator ( '.toolset' , { has : page . locator ( 'text=test' ) } ) ;
149+ await expect ( testToolset ) . toBeVisible ( ) ;
150+ await expect ( testToolset . locator ( '.toolset-status' ) . first ( ) ) . toHaveText ( 'enabled' ) ;
151+
152+ // Check that accessibility tool is enabled
153+ const accessibilityTool = testToolset . locator (
154+ '.toolset-tools li:has-text("accessibility")'
155+ ) ;
156+ await expect ( accessibilityTool ) . toBeVisible ( ) ;
157+ await expect ( accessibilityTool . locator ( '.toolset-status' ) ) . toHaveText ( '+ accessibility' ) ;
150158 } ) ;
151159 } ) ;
152160
0 commit comments