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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 3 deletions

View file

@ -20,6 +20,8 @@ limitations under the License.
* we make requests to the live `matrix.org`, which makes our tests dependent on matrix.org being up and responsive.
*/
import { isRustCryptoEnabled } from "./util";
const CONFIG_JSON = {
// This is deliberately quite a minimal config.json, so that we can test that the default settings
// actually work.
@ -40,7 +42,7 @@ beforeEach(() => {
const configJson = CONFIG_JSON;
// configure element to use rust crypto if the env var tells us so
if (Cypress.env("RUST_CRYPTO")) {
if (isRustCryptoEnabled()) {
configJson["features"] = {
feature_rust_crypto: true,
};