Cypress: skip tests known to fail when using Rust crypto (#10873)
* Cypress: skip tests known to fail when using Rust crypto ... which means we can then run the cypress test suite against Element Web R to check we aren't introducing regressions. * Update cypress/e2e/register/register.spec.ts * Use env var to detect rust crypto * Hoist `skipIfRustCrypto` call earlier
This commit is contained in:
parent
0c30f0c838
commit
2571f54e8b
5 changed files with 30 additions and 3 deletions
|
@ -18,6 +18,7 @@ import type { VerificationRequest } from "matrix-js-sdk/src/crypto/verification/
|
|||
import { HomeserverInstance } from "../../plugins/utils/homeserver";
|
||||
import { handleVerificationRequest, waitForVerificationRequest } from "./utils";
|
||||
import { CypressBot } from "../../support/bot";
|
||||
import { skipIfRustCrypto } from "../../support/util";
|
||||
|
||||
describe("Complete security", () => {
|
||||
let homeserver: HomeserverInstance;
|
||||
|
@ -46,6 +47,8 @@ describe("Complete security", () => {
|
|||
});
|
||||
|
||||
it("should walk through device verification if we have a signed device", () => {
|
||||
skipIfRustCrypto();
|
||||
|
||||
// create a new user, and have it bootstrap cross-signing
|
||||
let botClient: CypressBot;
|
||||
cy.getBot(homeserver, { displayName: "Jeff" })
|
||||
|
|
|
@ -20,6 +20,7 @@ import type { CypressBot } from "../../support/bot";
|
|||
import { HomeserverInstance } from "../../plugins/utils/homeserver";
|
||||
import { UserCredentials } from "../../support/login";
|
||||
import { EmojiMapping, handleVerificationRequest, waitForVerificationRequest } from "./utils";
|
||||
import { skipIfRustCrypto } from "../../support/util";
|
||||
|
||||
interface CryptoTestContext extends Mocha.Context {
|
||||
homeserver: HomeserverInstance;
|
||||
|
@ -152,6 +153,7 @@ describe("Cryptography", function () {
|
|||
});
|
||||
|
||||
it("setting up secure key backup should work", () => {
|
||||
skipIfRustCrypto();
|
||||
cy.openUserSettings("Security & Privacy");
|
||||
cy.findByRole("button", { name: "Set up Secure Backup" }).click();
|
||||
cy.get(".mx_Dialog").within(() => {
|
||||
|
@ -175,6 +177,7 @@ describe("Cryptography", function () {
|
|||
});
|
||||
|
||||
it("creating a DM should work, being e2e-encrypted / user verification", function (this: CryptoTestContext) {
|
||||
skipIfRustCrypto();
|
||||
cy.bootstrapCrossSigning(aliceCredentials);
|
||||
startDMWithBob.call(this);
|
||||
// send first message
|
||||
|
@ -196,6 +199,7 @@ describe("Cryptography", function () {
|
|||
});
|
||||
|
||||
it("should allow verification when there is no existing DM", function (this: CryptoTestContext) {
|
||||
skipIfRustCrypto();
|
||||
cy.bootstrapCrossSigning(aliceCredentials);
|
||||
autoJoin(this.bob);
|
||||
|
||||
|
@ -214,6 +218,7 @@ describe("Cryptography", function () {
|
|||
});
|
||||
|
||||
it("should show the correct shield on edited e2e events", function (this: CryptoTestContext) {
|
||||
skipIfRustCrypto();
|
||||
cy.bootstrapCrossSigning(aliceCredentials);
|
||||
|
||||
// bob has a second, not cross-signed, device
|
||||
|
|
|
@ -19,6 +19,7 @@ import type { MatrixClient } from "matrix-js-sdk/src/matrix";
|
|||
import { HomeserverInstance } from "../../plugins/utils/homeserver";
|
||||
import { UserCredentials } from "../../support/login";
|
||||
import { handleVerificationRequest } from "./utils";
|
||||
import { skipIfRustCrypto } from "../../support/util";
|
||||
|
||||
const ROOM_NAME = "Test room";
|
||||
const TEST_USER = "Alia";
|
||||
|
@ -67,6 +68,7 @@ describe("Decryption Failure Bar", () => {
|
|||
let roomId: string;
|
||||
|
||||
beforeEach(function () {
|
||||
skipIfRustCrypto();
|
||||
cy.startHomeserver("default").then((hs: HomeserverInstance) => {
|
||||
homeserver = hs;
|
||||
cy.initTestUser(homeserver, TEST_USER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue