2022-05-04 13:07:37 +02:00
|
|
|
/*
|
|
|
|
Copyright 2022 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/// <reference types="cypress" />
|
|
|
|
|
2022-05-17 17:16:14 +02:00
|
|
|
import "@percy/cypress";
|
2022-05-26 11:19:00 +02:00
|
|
|
import "cypress-real-events";
|
2023-03-29 08:47:05 +02:00
|
|
|
import "@testing-library/cypress/add-commands";
|
2023-07-11 17:10:13 +02:00
|
|
|
import installLogsCollector from "cypress-terminal-report/src/installLogsCollector";
|
2022-05-17 17:16:14 +02:00
|
|
|
|
2023-05-16 14:15:20 +02:00
|
|
|
import "./config.json";
|
2023-01-11 00:29:56 +01:00
|
|
|
import "./homeserver";
|
2022-05-04 16:11:33 +02:00
|
|
|
import "./login";
|
2022-06-15 16:14:05 +02:00
|
|
|
import "./labs";
|
2022-05-10 19:09:31 +02:00
|
|
|
import "./client";
|
|
|
|
import "./settings";
|
|
|
|
import "./bot";
|
2022-05-26 11:19:00 +02:00
|
|
|
import "./clipboard";
|
|
|
|
import "./util";
|
2022-05-26 12:12:49 +02:00
|
|
|
import "./app";
|
2022-06-08 23:12:56 +02:00
|
|
|
import "./percy";
|
2022-06-10 17:24:15 +02:00
|
|
|
import "./webserver";
|
|
|
|
import "./views";
|
|
|
|
import "./iframes";
|
2022-07-18 14:16:44 +02:00
|
|
|
import "./timeline";
|
|
|
|
import "./network";
|
2022-07-20 09:56:52 +02:00
|
|
|
import "./composer";
|
2022-09-07 17:42:39 +02:00
|
|
|
import "./proxy";
|
2022-08-01 09:31:14 +02:00
|
|
|
import "./axe";
|
2023-08-15 17:14:53 +02:00
|
|
|
import "./promise";
|
2023-07-11 17:10:13 +02:00
|
|
|
|
|
|
|
installLogsCollector({
|
|
|
|
// specify the types of logs to collect (and report to the node console at the end of the test)
|
|
|
|
collectTypes: [
|
|
|
|
"cons:log",
|
|
|
|
"cons:info",
|
|
|
|
"cons:warn",
|
|
|
|
"cons:error",
|
2023-09-04 18:54:21 +02:00
|
|
|
// most of our logs go through `loglevel`, which sets `logger.log` to be an alias of `logger.debug`.
|
|
|
|
// Hence, if we want to capture `logger.log` lines, we need to enable `cons:debug` here.
|
|
|
|
"cons:debug",
|
2023-07-11 17:10:13 +02:00
|
|
|
"cy:log",
|
|
|
|
"cy:xhr",
|
|
|
|
"cy:fetch",
|
|
|
|
"cy:request",
|
|
|
|
"cy:intercept",
|
|
|
|
"cy:command",
|
|
|
|
],
|
|
|
|
});
|