-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
test e2e: use encryption tab instead of Security & Settings tab in crypto.spec.ts #29595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ab in crypto.spec.ts
e1339a0
to
4be9874
Compare
playwright/e2e/crypto/crypto.spec.ts
Outdated
return await test.step("Fetch master key from server", async () => { | ||
const k = await app.client.evaluate(async (cli) => { | ||
const userId = cli.getUserId(); | ||
const keys = await cli.downloadKeysForUsers([userId]); | ||
return Object.values(keys.master_keys[userId].keys)[0]; | ||
}); | ||
console.log(`fetchMasterKey: ${k}`); | ||
const k = await app.client.evaluate( | ||
// @ts-ignore we can't use the CrossSigning enum here | ||
async (cli) => await cli.getCrypto().getCrossSigningKeyId("master"), | ||
); | ||
return k; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This no longer fetches the master key from the server, which (a) means the description on the test step is wrong, but more to the point, (b) rather defeats the point of the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I have the issue that cli.downloadKeysForUsers
still returns the old master key. Cf crypto lobby discussion, I wonder what we should do here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
LGTM otherwise
e795515
to
ede61d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
playwright/e2e/crypto/crypto.spec.ts
Outdated
// Find the "reset cross signing" button, and click it | ||
await app.settings.openUserSettings("Security & Privacy"); | ||
await page.locator("div.mx_CrossSigningPanel_buttonRow").getByRole("button", { name: "Reset" }).click(); | ||
// Find the Reset cryptographic identity button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Find the Reset cryptographic identity button | |
// Find the "Reset cryptographic identity" button |
Task #26468
Require matrix-org/matrix-js-sdk#4772