File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
src/screens/Console/Buckets/ListBuckets Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const UploadFilesButton = ({
148148 open = { uploadOptionsOpen }
149149 anchorEl = { anchorEl }
150150 anchorOrigin = { "end" }
151- useAnchorWidth = { false }
151+ useAnchorWidth
152152 />
153153 </ Fragment >
154154 ) ;
Original file line number Diff line number Diff line change 3131 . useRole ( roles . bucketWritePrefixOnly )
3232 . navigateTo ( "http://localhost:9090/browser/testcafe" )
3333 . click ( uploadButton )
34- . expect ( Selector ( "li " ) . withText ( "Upload File" ) . hasClass ( "disabled" ) )
34+ . expect ( Selector ( "div " ) . withText ( "Upload File" ) . hasClass ( "disabled" ) )
3535 . ok ( )
36- . expect ( Selector ( "li " ) . withText ( "Upload Folder" ) . hasClass ( "disabled" ) )
36+ . expect ( Selector ( "div " ) . withText ( "Upload Folder" ) . hasClass ( "disabled" ) )
3737 . notOk ( ) ;
3838 } ,
3939 )
4848 . useRole ( roles . bucketWritePrefixOnly )
4949 . navigateTo ( "http://localhost:9090/browser/testcafe/d3JpdGU=" )
5050 . click ( uploadButton )
51- . expect ( Selector ( "li " ) . withText ( "Upload File" ) . hasClass ( "disabled" ) )
51+ . expect ( Selector ( "div " ) . withText ( "Upload File" ) . hasClass ( "disabled" ) )
5252 . notOk ( )
53- . expect ( Selector ( "li " ) . withText ( "Upload Folder" ) . hasClass ( "disabled" ) )
53+ . expect ( Selector ( "div " ) . withText ( "Upload Folder" ) . hasClass ( "disabled" ) )
5454 . notOk ( ) ;
5555 } ,
5656 )
Original file line number Diff line number Diff line change @@ -63,9 +63,11 @@ export const deleteAllVersions =
6363export const bucketNameInput = Selector ( "#bucket-name-select" ) ;
6464export const bucketsPrefixInput = Selector ( "#prefix" ) ;
6565export const bucketsAccessInput = Selector ( "div.selectContainer" ) ;
66- export const bucketsAccessReadOnlyInput = Selector ( "li" ) . withText ( "readonly" ) ;
67- export const bucketsAccessWriteOnlyInput = Selector ( "li" ) . withText ( "writeonly" ) ;
68- export const bucketsAccessReadWriteInput = Selector ( "li" ) . withText ( "readwrite" ) ;
66+ export const bucketsAccessReadOnlyInput = Selector ( "div" ) . withText ( "readonly" ) ;
67+ export const bucketsAccessWriteOnlyInput =
68+ Selector ( "div" ) . withText ( "writeonly" ) ;
69+ export const bucketsAccessReadWriteInput =
70+ Selector ( "div" ) . withText ( "readwrite" ) ;
6971export const uploadInput = Selector ( "input" ) . withAttribute ( "type" , "file" ) ;
7072export const createPolicyName = Selector ( "#policy-name" ) ;
7173export const createPolicyTextfield = Selector ( ".w-tc-editor-text" ) ;
@@ -86,7 +88,7 @@ export const groupUserCheckbox = Selector(".ReactVirtualized__Table__row input")
8688// Dropdowns and options
8789//----------------------------------------------------
8890export const bucketDropdownOptionFor = ( modifier ) => {
89- return Selector ( "#bucket-name-options-selector li " ) . withText (
91+ return Selector ( "#bucket-name-options-selector div " ) . withText (
9092 `${ constants . TEST_BUCKET_NAME } -${ modifier } ` ,
9193 ) ;
9294} ;
You can’t perform that action at this time.
0 commit comments