Fix layout and visual regressions around default avatars (#10031)
This commit is contained in:
parent
5a08859e37
commit
0d1fce37b2
5 changed files with 21 additions and 28 deletions
|
@ -153,10 +153,7 @@ describe("Spaces", () => {
|
|||
|
||||
openSpaceCreateMenu().within(() => {
|
||||
cy.get(".mx_SpaceCreateMenuType_private").click();
|
||||
cy.get('.mx_SpaceBasicSettings_avatarContainer input[type="file"]').selectFile(
|
||||
"cypress/fixtures/riot.png",
|
||||
{ force: true },
|
||||
);
|
||||
// We don't set an avatar here to get a Percy snapshot of the default avatar style for spaces
|
||||
cy.get('input[label="Address"]').should("not.exist");
|
||||
cy.get('textarea[label="Description"]').type("This is a personal space to mourn Riot.im...");
|
||||
cy.get('input[label="Name"]').type("This is my Riot{enter}");
|
||||
|
@ -169,6 +166,7 @@ describe("Spaces", () => {
|
|||
|
||||
cy.contains(".mx_RoomList .mx_RoomTile", "Sample Room").should("exist");
|
||||
cy.contains(".mx_SpaceHierarchy_list .mx_SpaceHierarchy_roomTile", "Sample Room").should("exist");
|
||||
cy.get(".mx_LeftPanel_outerWrapper").percySnapshotElement("Left panel with default avatar space");
|
||||
});
|
||||
|
||||
it("should allow user to invite another to a space", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue