File tree Expand file tree Collapse file tree 3 files changed +34
-9
lines changed
src/screens/Console/Buckets/ListBuckets Expand file tree Collapse file tree 3 files changed +34
-9
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ const UploadFilesButton = ({
148
148
open = { uploadOptionsOpen }
149
149
anchorEl = { anchorEl }
150
150
anchorOrigin = { "end" }
151
- useAnchorWidth = { false }
151
+ useAnchorWidth
152
152
/>
153
153
</ Fragment >
154
154
) ;
Original file line number Diff line number Diff line change 31
31
. useRole ( roles . bucketWritePrefixOnly )
32
32
. navigateTo ( "http://localhost:9090/browser/testcafe" )
33
33
. click ( uploadButton )
34
- . expect ( Selector ( "li" ) . withText ( "Upload File" ) . hasClass ( "disabled" ) )
34
+ . expect (
35
+ Selector ( "div" )
36
+ . withAttribute ( "label" , "Upload File" )
37
+ . hasClass ( "disabled" ) ,
38
+ )
35
39
. ok ( )
36
- . expect ( Selector ( "li" ) . withText ( "Upload Folder" ) . hasClass ( "disabled" ) )
40
+ . expect (
41
+ Selector ( "div" )
42
+ . withAttribute ( "label" , "Upload Folder" )
43
+ . hasClass ( "disabled" ) ,
44
+ )
37
45
. notOk ( ) ;
38
46
} ,
39
47
)
48
56
. useRole ( roles . bucketWritePrefixOnly )
49
57
. navigateTo ( "http://localhost:9090/browser/testcafe/d3JpdGU=" )
50
58
. click ( uploadButton )
51
- . expect ( Selector ( "li" ) . withText ( "Upload File" ) . hasClass ( "disabled" ) )
59
+ . expect (
60
+ Selector ( "div" )
61
+ . withAttribute ( "label" , "Upload File" )
62
+ . hasClass ( "disabled" ) ,
63
+ )
52
64
. notOk ( )
53
- . expect ( Selector ( "li" ) . withText ( "Upload Folder" ) . hasClass ( "disabled" ) )
65
+ . expect (
66
+ Selector ( "div" )
67
+ . withAttribute ( "label" , "Upload Folder" )
68
+ . hasClass ( "disabled" ) ,
69
+ )
54
70
. notOk ( ) ;
55
71
} ,
56
72
)
Original file line number Diff line number Diff line change @@ -63,9 +63,18 @@ export const deleteAllVersions =
63
63
export const bucketNameInput = Selector ( "#bucket-name-select" ) ;
64
64
export const bucketsPrefixInput = Selector ( "#prefix" ) ;
65
65
export 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" ) . withAttribute (
67
+ "label" ,
68
+ "readonly" ,
69
+ ) ;
70
+ export const bucketsAccessWriteOnlyInput = Selector ( "div" ) . withAttribute (
71
+ "label" ,
72
+ "writeonly" ,
73
+ ) ;
74
+ export const bucketsAccessReadWriteInput = Selector ( "div" ) . withAttribute (
75
+ "label" ,
76
+ "readwrite" ,
77
+ ) ;
69
78
export const uploadInput = Selector ( "input" ) . withAttribute ( "type" , "file" ) ;
70
79
export const createPolicyName = Selector ( "#policy-name" ) ;
71
80
export const createPolicyTextfield = Selector ( ".w-tc-editor-text" ) ;
@@ -86,7 +95,7 @@ export const groupUserCheckbox = Selector(".ReactVirtualized__Table__row input")
86
95
// Dropdowns and options
87
96
//----------------------------------------------------
88
97
export const bucketDropdownOptionFor = ( modifier ) => {
89
- return Selector ( "#bucket-name-options-selector li " ) . withText (
98
+ return Selector ( "#bucket-name-options-selector div " ) . withText (
90
99
`${ constants . TEST_BUCKET_NAME } -${ modifier } ` ,
91
100
) ;
92
101
} ;
You can’t perform that action at this time.
0 commit comments