This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,22 @@ describe("FilePanel", () => {
210
210
} ) ;
211
211
} ) ;
212
212
} ) ;
213
+
214
+ it ( "should not add inline padding to a tile when it is selected with right click" , ( ) => {
215
+ // Upload a file
216
+ uploadFile ( "cypress/fixtures/1sec.ogg" ) ;
217
+
218
+ cy . get ( ".mx_FilePanel .mx_RoomView_MessageList" ) . within ( ( ) => {
219
+ // Wait until the spinner of the audio player vanishes
220
+ cy . get ( ".mx_InlineSpinner" ) . should ( "not.exist" ) ;
221
+
222
+ // Right click the uploaded file to select the tile
223
+ cy . get ( ".mx_EventTile" ) . rightclick ( ) ;
224
+
225
+ // Assert that inline padding is not applied
226
+ cy . get ( ".mx_EventTile_selected .mx_EventTile_line" ) . should ( "have.css" , "padding-inline" , "0px" ) ;
227
+ } ) ;
228
+ } ) ;
213
229
} ) ;
214
230
215
231
describe ( "download" , ( ) => {
Original file line number Diff line number Diff line change @@ -111,10 +111,6 @@ limitations under the License.
111
111
.mx_EventTile_line {
112
112
margin-inline-end : 0 ;
113
113
padding-inline-start : 0 ;
114
-
115
- .mx_EventTile_selected & {
116
- padding-inline-start : 0 ;
117
- }
118
114
}
119
115
}
120
116
You can’t perform that action at this time.
0 commit comments