2022-05-04 11:07:37 +00: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 15:16:14 +00:00
|
|
|
import "@percy/cypress";
|
2022-05-26 09:19:00 +00:00
|
|
|
import "cypress-real-events";
|
2023-03-29 06:47:05 +00:00
|
|
|
import "@testing-library/cypress/add-commands";
|
2023-07-11 15:10:13 +00:00
|
|
|
import installLogsCollector from "cypress-terminal-report/src/installLogsCollector";
|
2022-05-17 15:16:14 +00:00
|
|
|
|
2023-05-16 12:15:20 +00:00
|
|
|
import "./config.json";
|
2023-01-10 23:29:56 +00:00
|
|
|
import "./homeserver";
|
2022-05-04 14:11:33 +00:00
|
|
|
import "./login";
|
2022-06-15 14:14:05 +00:00
|
|
|
import "./labs";
|
2022-05-10 17:09:31 +00:00
|
|
|
import "./client";
|
|
|
|
import "./settings";
|
|
|
|
import "./bot";
|
2022-05-26 09:19:00 +00:00
|
|
|
import "./clipboard";
|
|
|
|
import "./util";
|
2022-05-26 10:12:49 +00:00
|
|
|
import "./app";
|
2022-06-08 21:12:56 +00:00
|
|
|
import "./percy";
|
2022-06-10 15:24:15 +00:00
|
|
|
import "./webserver";
|
|
|
|
import "./views";
|
|
|
|
import "./iframes";
|
2022-07-20 07:56:52 +00:00
|
|
|
import "./composer";
|
2022-08-01 07:31:14 +00:00
|
|
|
import "./axe";
|
2023-08-15 15:14:53 +00:00
|
|
|
import "./promise";
|
2023-07-11 15:10:13 +00: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 16:54:21 +00: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 15:10:13 +00:00
|
|
|
"cy:log",
|
|
|
|
"cy:xhr",
|
|
|
|
"cy:fetch",
|
|
|
|
"cy:request",
|
|
|
|
"cy:intercept",
|
|
|
|
"cy:command",
|
|
|
|
],
|
|
|
|
});
|