@@ -58,9 +58,10 @@ test("@core @p5-connectors connectors/setup room identity, pin-to-office, and th
5858
5959 await completeQuickstartLocalOnboarding ( page ) ;
6060
61- // Neither room lamp exists until the Connectors page is enabled.
61+ // Setup is the recovery authority and remains available independently;
62+ // only the optional Connectors room waits for its feature switch.
6263 await expect ( page . locator ( 'button[title="BF · Connectors"]' ) ) . toHaveCount ( 0 ) ;
63- await expect ( page . locator ( 'button[title="BF · Setup"]' ) ) . toHaveCount ( 0 ) ;
64+ await expect ( page . locator ( 'button[title="BF · Setup"]' ) ) . toHaveCount ( 1 ) ;
6465 await setConnectorsPage ( page , true ) ;
6566 await expect ( page . locator ( 'button[title="BF · Connectors"]' ) ) . toHaveCount ( 1 ) ;
6667 await expect ( page . locator ( 'button[title="BF · Setup"]' ) ) . toHaveCount ( 1 ) ;
@@ -76,26 +77,46 @@ test("@core @p5-connectors connectors/setup room identity, pin-to-office, and th
7677 "Installed registry" ,
7778 ) ;
7879
79- // The Setup room is its own stable identity and lands on Setup.
80+ // The Setup room is its own stable identity and lands on its distinct
81+ // product surface, not the connector tabs; it offers no Connectors pin —
82+ // one door must not ambiguously open both rooms.
8083 await page . locator ( 'button[title="BF · Setup"]' ) . click ( ) ;
8184 await expect ( activeRooms ) . toHaveCount ( 1 ) ;
8285 await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Setup" ) ;
86+ await expect ( page . getByTestId ( "setup-room-page" ) ) . toBeVisible ( ) ;
87+ await expect ( page . getByTestId ( "setup-room-page" ) ) . toContainText (
88+ "Gateway connection" ,
89+ ) ;
90+ await expect ( page . locator ( ".mc-connectors-tab-bar" ) ) . toHaveCount ( 0 ) ;
91+ await expect (
92+ page . getByRole ( "button" , { name : "Pin Connectors to Office" } ) ,
93+ ) . toHaveCount ( 0 ) ;
94+
95+ // Connector quick setup stays reachable inside the Connectors room, and
96+ // internal tab clicks never move the lamp.
97+ await page . locator ( 'button[title="BF · Connectors"]' ) . click ( ) ;
98+ await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Connectors" ) ;
99+ await expect ( activeConnectorsTab ( page ) ) . toHaveText ( / ^ R e g i s t r y / ) ;
100+ await page
101+ . locator ( ".mc-connectors-tab-bar" )
102+ . getByRole ( "button" , { name : "Setup" , exact : true } )
103+ . click ( ) ;
83104 await expect ( activeConnectorsTab ( page ) ) . toHaveText ( "Setup" ) ;
84105 await expect ( page . getByTestId ( "connectors-page" ) ) . toContainText (
85106 "Quick Setup" ,
86107 ) ;
87-
88- // Internal tab clicks never move the lamp, and the Setup room offers no
89- // Connectors pin — one door must not ambiguously open both rooms.
90- await page . getByRole ( "button" , { name : / ^ C a t a l o g / } ) . click ( ) ;
108+ await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Connectors" ) ;
109+ await page
110+ . locator ( ".mc-connectors-tab-bar" )
111+ . getByRole ( "button" , { name : / ^ C a t a l o g / } )
112+ . click ( ) ;
91113 await expect ( activeConnectorsTab ( page ) ) . toHaveText ( / ^ C a t a l o g / ) ;
92- await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Setup" ) ;
93- await expect (
94- page . getByRole ( "button" , { name : "Pin Connectors to Office" } ) ,
95- ) . toHaveCount ( 0 ) ;
114+ await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Connectors" ) ;
96115
97- // Returning to the Connectors room is a real room change: it relands on
98- // Registry and offers the pin.
116+ // Returning after visiting the Setup room is a real room change: it
117+ // relands on Registry and offers the pin.
118+ await page . locator ( 'button[title="BF · Setup"]' ) . click ( ) ;
119+ await expect ( page . getByTestId ( "setup-room-page" ) ) . toBeVisible ( ) ;
99120 await page . locator ( 'button[title="BF · Connectors"]' ) . click ( ) ;
100121 await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Connectors" ) ;
101122 await expect ( activeConnectorsTab ( page ) ) . toHaveText ( / ^ R e g i s t r y / ) ;
@@ -233,12 +254,12 @@ test("@core @p5-connectors connectors/setup room identity, pin-to-office, and th
233254 await expect ( activeRooms ) . toHaveAttribute ( "title" , "BF · Connectors" ) ;
234255 await expect ( activeConnectorsTab ( page ) ) . toHaveText ( / ^ R e g i s t r y / ) ;
235256
236- // Turning the Connectors page off removes both room lamps; the persisted
237- // door stays visible but refuses honestly instead of dying silently .
257+ // Turning the Connectors page off removes only its lamp; Setup remains
258+ // available to restore it, while the persisted Connectors door refuses .
238259 await setConnectorsPage ( page , false ) ;
239260 await page . locator ( '[data-tour-id="nav-assistant"]' ) . click ( ) ;
240261 await expect ( page . locator ( 'button[title="BF · Connectors"]' ) ) . toHaveCount ( 0 ) ;
241- await expect ( page . locator ( 'button[title="BF · Setup"]' ) ) . toHaveCount ( 0 ) ;
262+ await expect ( page . locator ( 'button[title="BF · Setup"]' ) ) . toHaveCount ( 1 ) ;
242263 await page
243264 . getByTestId ( "office-block-connectors" )
244265 . getByRole ( "button" , { name : "Open Connectors" } )
0 commit comments