File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ export const sideBarDriveSwitcher = '[title="Open Drive Settings"]';
27
27
export const sideBarNewResource = '[data-test="sidebar-new-resource"]' ;
28
28
export const currentDriveTitle = '[data-test=current-drive-title]' ;
29
29
export const publicReadRightLocator = ( page : Page ) =>
30
- page . locator ( '[data-test="right-public"] input[type="checkbox"]' ) . first ( ) ;
30
+ page
31
+ . locator (
32
+ '[data-test="right-public"] input[type="checkbox"]:not([disabled])' ,
33
+ )
34
+ . first ( ) ;
31
35
export const contextMenu = '[data-test="context-menu"]' ;
32
36
export const addressBar = '[data-test="address-bar"]' ;
33
37
export const newDriveMenuItem = '[data-test="menu-item-new-drive"]' ;
@@ -111,7 +115,10 @@ export async function makeDrivePublic(page: Page) {
111
115
await page . click ( currentDriveTitle ) ;
112
116
await page . click ( contextMenu ) ;
113
117
await page . click ( 'button:has-text("share")' ) ;
114
- await expect ( publicReadRightLocator ( page ) ) . not . toBeChecked ( ) ;
118
+ await expect (
119
+ publicReadRightLocator ( page ) ,
120
+ 'The drive was public from the start' ,
121
+ ) . not . toBeChecked ( ) ;
115
122
await publicReadRightLocator ( page ) . click ( ) ;
116
123
await page . locator ( 'text=Save' ) . click ( ) ;
117
124
await expect ( page . locator ( 'text="Share settings saved"' ) ) . toBeVisible ( ) ;
You can’t perform that action at this time.
0 commit comments