Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix the color of the verified E2EE icon on RoomSummaryCard #10812

Merged
merged 1 commit into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions cypress/e2e/crypto/crypto.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ describe("Cryptography", function () {
bobJoin.call(this);
testMessages.call(this);
verify.call(this);

// Assert that verified icon is rendered
cy.findByRole("button", { name: "Room members" }).click();
cy.findByRole("button", { name: "Room information" }).click();
cy.get(".mx_RoomSummaryCard_e2ee_verified").should("exist");

// Take a snapshot of RoomSummaryCard with a verified E2EE icon
cy.get(".mx_RightPanel").percySnapshotElement("RoomSummaryCard - with a verified E2EE icon", {
widths: [264], // Emulate the UI. The value is based on minWidth specified on MainSplit.tsx
});
});

it("should allow verification when there is no existing DM", function (this: CryptoTestContext) {
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/right_panel/_RoomSummaryCard.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ limitations under the License.
}

.mx_RoomSummaryCard_e2ee_verified {
background-color: #$e2e-verified-color;
background-color: $e2e-verified-color;
&::before {
mask-image: url("$(res)/img/e2e/verified.svg");
}
Expand Down