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:
Richard van der Hoff
2023-05-24 10:50:05 +01:00
committed by GitHub
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" })