@@ -49,7 +49,7 @@ test.describe("Cryptography", function () {
49
49
} ) ;
50
50
} ) ;
51
51
52
- test ( "should show the correct shield on e2e events" , async ( { page, app, bot : bob , homeserver } ) => {
52
+ test ( "should show the correct shield on e2e events" , async ( { page, app, bot : bob , homeserver } , workerInfo ) => {
53
53
// Bob has a second, not cross-signed, device
54
54
const bobSecondDevice = new Bot ( page , homeserver , {
55
55
bootstrapSecretStorage : false ,
@@ -125,7 +125,10 @@ test.describe("Cryptography", function () {
125
125
await lastTileE2eIcon . focus ( ) ;
126
126
await expect ( page . getByRole ( "tooltip" ) ) . toContainText ( "Encrypted by a device not verified by its owner." ) ;
127
127
128
- /* Should show a grey padlock for a message from an unknown device */
128
+ /* In legacy crypto: should show a grey padlock for a message from a deleted device.
129
+ * In rust crypto: should show a red padlock for a message from an unverified device.
130
+ * Rust crypto remembers the verification state of the sending device, so it will know that the device was
131
+ * unverified, even if it gets deleted. */
129
132
// bob deletes his second device
130
133
await bobSecondDevice . evaluate ( ( cli ) => cli . logout ( true ) ) ;
131
134
@@ -156,7 +159,11 @@ test.describe("Cryptography", function () {
156
159
await expect ( last ) . toContainText ( "test encrypted from unverified" ) ;
157
160
await expect ( lastE2eIcon ) . toHaveClass ( / m x _ E v e n t T i l e _ e 2 e I c o n _ w a r n i n g / ) ;
158
161
await lastE2eIcon . focus ( ) ;
159
- await expect ( page . getByRole ( "tooltip" ) ) . toContainText ( "Encrypted by an unknown or deleted device." ) ;
162
+ await expect ( page . getByRole ( "tooltip" ) ) . toContainText (
163
+ workerInfo . project . name === "Legacy Crypto" ?
164
+ "Encrypted by an unknown or deleted device." :
165
+ "Encrypted by a device not verified by its owner."
166
+ ) ;
160
167
} ) ;
161
168
162
169
test ( "Should show a grey padlock for a key restored from backup" , async ( {
0 commit comments