@@ -15,8 +15,8 @@ async function ensureSectionExpanded(container: Locator, sectionName: string): P
1515/**
1616 * Get the two availability switches within a container.
1717 * Returns [primarySwitch, maintenanceSwitch] — the first switch is
18- * "Available for use" (storage/destination) or "Available for reporting" (data-mart),
19- * the second is always "Available for maintenance".
18+ * "Shared for use" (storage/destination) or "Shared for reporting" (data-mart),
19+ * the second is always "Shared for maintenance".
2020 */
2121function getAvailabilitySwitches ( container : Locator | Page ) : [ Locator , Locator ] {
2222 const switches = container . getByRole ( 'switch' ) ;
@@ -46,8 +46,8 @@ test.describe('Storage Availability', () => {
4646 await ensureSectionExpanded ( sheet , 'Availability' ) ;
4747
4848 // Both labels should be visible
49- await expect ( sheet . getByText ( 'Available for use' , { exact : true } ) ) . toBeVisible ( ) ;
50- await expect ( sheet . getByText ( 'Available for maintenance' , { exact : true } ) ) . toBeVisible ( ) ;
49+ await expect ( sheet . getByText ( 'Shared for use' , { exact : true } ) ) . toBeVisible ( ) ;
50+ await expect ( sheet . getByText ( 'Shared for maintenance' , { exact : true } ) ) . toBeVisible ( ) ;
5151 } ) ;
5252
5353 test ( 'availability defaults to use=ON, maintenance=OFF for new storage (AVL-02)' , async ( {
@@ -76,7 +76,7 @@ test.describe('Storage Availability', () => {
7676
7777 test ( 'availability set via API is reflected in UI (AVL-03)' , async ( { page, apiHelpers } ) => {
7878 const storage = await apiHelpers . createStorage ( 'GOOGLE_BIGQUERY' ) ;
79- // Set "Available for maintenance" to OFF via API
79+ // Set "Shared for maintenance" to OFF via API
8080 await apiHelpers . setStorageAvailability ( storage . id , true , false ) ;
8181
8282 await page . goto ( '/ui/0/data-storages' ) ;
@@ -92,7 +92,7 @@ test.describe('Storage Availability', () => {
9292 // Expand Availability section
9393 await ensureSectionExpanded ( sheet , 'Availability' ) ;
9494
95- // "Available for use" should be ON, "Available for maintenance" should be OFF
95+ // "Shared for use" should be ON, "Shared for maintenance" should be OFF
9696 const [ useSwitch , maintenanceSwitch ] = getAvailabilitySwitches ( sheet ) ;
9797 await expect ( useSwitch ) . toHaveAttribute ( 'data-state' , 'checked' ) ;
9898 await expect ( maintenanceSwitch ) . toHaveAttribute ( 'data-state' , 'unchecked' ) ;
@@ -116,16 +116,16 @@ test.describe('Destination Availability', () => {
116116 // Expand Availability section
117117 await ensureSectionExpanded ( sheet , 'Availability' ) ;
118118
119- await expect ( sheet . getByText ( 'Available for use' , { exact : true } ) ) . toBeVisible ( ) ;
120- await expect ( sheet . getByText ( 'Available for maintenance' , { exact : true } ) ) . toBeVisible ( ) ;
119+ await expect ( sheet . getByText ( 'Shared for use' , { exact : true } ) ) . toBeVisible ( ) ;
120+ await expect ( sheet . getByText ( 'Shared for maintenance' , { exact : true } ) ) . toBeVisible ( ) ;
121121 } ) ;
122122
123123 test ( 'destination availability set via API is reflected in UI (AVL-05)' , async ( {
124124 page,
125125 apiHelpers,
126126 } ) => {
127127 const dest = await apiHelpers . createDestination ( 'LOOKER_STUDIO' , 'Persist Dest' ) ;
128- // Set "Available for use" to OFF via API
128+ // Set "Shared for use" to OFF via API
129129 await apiHelpers . setDestinationAvailability ( dest . id , false , true ) ;
130130
131131 await page . goto ( '/ui/0/data-destinations' ) ;
@@ -139,7 +139,7 @@ test.describe('Destination Availability', () => {
139139 // Expand Availability section
140140 await ensureSectionExpanded ( sheet , 'Availability' ) ;
141141
142- // "Available for use" should be OFF, "Available for maintenance" should be ON
142+ // "Shared for use" should be OFF, "Shared for maintenance" should be ON
143143 const [ useSwitch , maintenanceSwitch ] = getAvailabilitySwitches ( sheet ) ;
144144 await expect ( useSwitch ) . toHaveAttribute ( 'data-state' , 'unchecked' ) ;
145145 await expect ( maintenanceSwitch ) . toHaveAttribute ( 'data-state' , 'checked' ) ;
@@ -161,8 +161,8 @@ test.describe('DataMart Availability', () => {
161161 await expect ( page . getByTestId ( TESTIDS . datamartTabOverview ) ) . toBeVisible ( ) ;
162162
163163 await expect ( page . getByText ( 'Availability' ) ) . toBeVisible ( ) ;
164- await expect ( page . getByText ( 'Available for reporting' , { exact : true } ) ) . toBeVisible ( ) ;
165- await expect ( page . getByText ( 'Available for maintenance' , { exact : true } ) ) . toBeVisible ( ) ;
164+ await expect ( page . getByText ( 'Shared for reporting' , { exact : true } ) ) . toBeVisible ( ) ;
165+ await expect ( page . getByText ( 'Shared for maintenance' , { exact : true } ) ) . toBeVisible ( ) ;
166166 } ) ;
167167
168168 test ( 'DM availability toggle saves immediately without Save button (AVL-07)' , async ( {
@@ -176,7 +176,7 @@ test.describe('DataMart Availability', () => {
176176 await page . goto ( `/ui/0/data-marts/${ dm . id } /overview` ) ;
177177 await expect ( page . getByTestId ( TESTIDS . datamartTabOverview ) ) . toBeVisible ( ) ;
178178
179- // Toggle "Available for reporting" OFF (first switch)
179+ // Toggle "Shared for reporting" OFF (first switch)
180180 const [ reportingSwitch ] = getAvailabilitySwitches ( page ) ;
181181 await reportingSwitch . click ( ) ;
182182
@@ -192,7 +192,7 @@ test.describe('DataMart Availability', () => {
192192 await page . goto ( `/ui/0/data-marts/${ dm . id } /overview` ) ;
193193 await expect ( page . getByTestId ( TESTIDS . datamartTabOverview ) ) . toBeVisible ( ) ;
194194
195- // Toggle "Available for maintenance" OFF (second switch)
195+ // Toggle "Shared for maintenance" OFF (second switch)
196196 const [ , maintenanceSwitch ] = getAvailabilitySwitches ( page ) ;
197197 await maintenanceSwitch . click ( ) ;
198198 await expect ( page . getByText ( 'Availability updated' ) ) . toBeVisible ( ) ;
@@ -201,11 +201,11 @@ test.describe('DataMart Availability', () => {
201201 await page . reload ( ) ;
202202 await expect ( page . getByTestId ( TESTIDS . datamartTabOverview ) ) . toBeVisible ( ) ;
203203
204- // "Available for maintenance" should be OFF after reload
204+ // "Shared for maintenance" should be OFF after reload
205205 const [ reportingSwitchAfter , maintenanceSwitchAfter ] = getAvailabilitySwitches ( page ) ;
206206 await expect ( maintenanceSwitchAfter ) . toHaveAttribute ( 'data-state' , 'unchecked' ) ;
207207
208- // "Available for reporting" should still be ON
208+ // "Shared for reporting" should still be ON
209209 await expect ( reportingSwitchAfter ) . toHaveAttribute ( 'data-state' , 'checked' ) ;
210210 } ) ;
211211} ) ;
0 commit comments