@@ -100,9 +100,9 @@ describe("Spaces", () => {
100
100
cy . get ( ".mx_AccessibleButton" ) . contains ( "Go to my first room" ) . click ( ) ;
101
101
102
102
// Assert rooms exist in the room list
103
- cy . get ( ".mx_RoomTile " ) . contains ( "General" ) . should ( "exist" ) ;
104
- cy . get ( ".mx_RoomTile " ) . contains ( "Random" ) . should ( "exist" ) ;
105
- cy . get ( ".mx_RoomTile " ) . contains ( "Jokes" ) . should ( "exist" ) ;
103
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "General" ) . should ( "exist" ) ;
104
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "Random" ) . should ( "exist" ) ;
105
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "Jokes" ) . should ( "exist" ) ;
106
106
} ) ;
107
107
108
108
it ( "should allow user to create private space" , ( ) => {
@@ -128,14 +128,14 @@ describe("Spaces", () => {
128
128
cy . get ( ".mx_AccessibleButton" ) . contains ( "Skip for now" ) . click ( ) ;
129
129
130
130
// Assert rooms exist in the room list
131
- cy . get ( ".mx_RoomTile " ) . contains ( "General" ) . should ( "exist" ) ;
132
- cy . get ( ".mx_RoomTile " ) . contains ( "Random" ) . should ( "exist" ) ;
133
- cy . get ( ".mx_RoomTile " ) . contains ( "Projects" ) . should ( "exist" ) ;
131
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "General" ) . should ( "exist" ) ;
132
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "Random" ) . should ( "exist" ) ;
133
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "Projects" ) . should ( "exist" ) ;
134
134
135
135
// Assert rooms exist in the space explorer
136
- cy . get ( ".mx_SpaceHierarchy_roomTile " ) . contains ( "General" ) . should ( "exist" ) ;
137
- cy . get ( ".mx_SpaceHierarchy_roomTile " ) . contains ( "Random" ) . should ( "exist" ) ;
138
- cy . get ( ".mx_SpaceHierarchy_roomTile " ) . contains ( "Projects" ) . should ( "exist" ) ;
136
+ cy . get ( ".mx_SpaceHierarchy_list " ) . contains ( ".mx_SpaceHierarchy_roomTile" , "General" ) . should ( "exist" ) ;
137
+ cy . get ( ".mx_SpaceHierarchy_list " ) . contains ( ".mx_SpaceHierarchy_roomTile" , "Random" ) . should ( "exist" ) ;
138
+ cy . get ( ".mx_SpaceHierarchy_list " ) . contains ( ".mx_SpaceHierarchy_roomTile" , "Projects" ) . should ( "exist" ) ;
139
139
} ) ;
140
140
141
141
it ( "should allow user to create just-me space" , ( ) => {
@@ -157,8 +157,8 @@ describe("Spaces", () => {
157
157
cy . get ( ".mx_AddExistingToSpace_entry" ) . click ( ) ;
158
158
cy . get ( ".mx_AccessibleButton" ) . contains ( "Add" ) . click ( ) ;
159
159
160
- cy . get ( ".mx_RoomTile " ) . contains ( "Sample Room" ) . should ( "exist" ) ;
161
- cy . get ( ".mx_SpaceHierarchy_roomTile " ) . contains ( "Sample Room" ) . should ( "exist" ) ;
160
+ cy . get ( ".mx_RoomList " ) . contains ( ".mx_RoomTile" , "Sample Room" ) . should ( "exist" ) ;
161
+ cy . get ( ".mx_SpaceHierarchy_list " ) . contains ( ".mx_SpaceHierarchy_roomTile" , "Sample Room" ) . should ( "exist" ) ;
162
162
} ) ;
163
163
164
164
it ( "should allow user to invite another to a space" , ( ) => {
@@ -233,8 +233,8 @@ describe("Spaces", () => {
233
233
cy . viewSpaceHomeByName ( spaceName ) ;
234
234
} ) ;
235
235
cy . get ( ".mx_SpaceRoomView .mx_SpaceHierarchy_list" ) . within ( ( ) => {
236
- cy . get ( ".mx_SpaceHierarchy_roomTile" ) . contains ( "Music" ) . should ( "exist" ) ;
237
- cy . get ( ".mx_SpaceHierarchy_roomTile" ) . contains ( "Gaming" ) . should ( "exist" ) ;
236
+ cy . contains ( ".mx_SpaceHierarchy_roomTile" , "Music" ) . should ( "exist" ) ;
237
+ cy . contains ( ".mx_SpaceHierarchy_roomTile" , "Gaming" ) . should ( "exist" ) ;
238
238
} ) ;
239
239
} ) ;
240
240
} ) ;
0 commit comments