2024-07-08 10:58:51 +00:00
|
|
|
import type { Options } from "@wdio/types";
|
|
|
|
|
|
|
|
export const config: Options.Testrunner = {
|
2020-05-23 09:43:22 +00:00
|
|
|
runner: "local",
|
2024-05-27 19:47:55 +00:00
|
|
|
specs: [
|
|
|
|
"./test/polyfill/**/test.ts",
|
|
|
|
"./test/js_api/*.ts",
|
|
|
|
"./test/integration_tests/**/test.ts",
|
|
|
|
],
|
2020-05-23 09:43:22 +00:00
|
|
|
maxInstances: 10,
|
|
|
|
capabilities: [
|
|
|
|
{
|
2024-07-08 10:58:51 +00:00
|
|
|
"wdio:maxInstances": 5,
|
2020-05-23 09:43:22 +00:00
|
|
|
browserName: "chrome",
|
|
|
|
"goog:chromeOptions": {
|
|
|
|
args: ["--headless", "--disable-gpu"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
logLevel: "info",
|
|
|
|
bail: 0,
|
|
|
|
baseUrl: "http://localhost",
|
2020-06-09 23:11:20 +00:00
|
|
|
waitforTimeout: 30000,
|
2020-05-23 09:43:22 +00:00
|
|
|
connectionRetryTimeout: 120000,
|
|
|
|
connectionRetryCount: 3,
|
|
|
|
services: [
|
|
|
|
"chromedriver",
|
|
|
|
[
|
|
|
|
"static-server",
|
|
|
|
{
|
|
|
|
folders: [
|
|
|
|
{ mount: "/dist", path: "./dist" },
|
|
|
|
{ mount: "/test_assets", path: "./test_assets" },
|
|
|
|
{ mount: "/test", path: "./test" },
|
|
|
|
],
|
|
|
|
port: 4567,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
framework: "mocha",
|
|
|
|
reporters: ["spec"],
|
|
|
|
mochaOpts: {
|
|
|
|
ui: "bdd",
|
2022-04-25 20:38:16 +00:00
|
|
|
timeout: 120000,
|
2020-05-23 09:43:22 +00:00
|
|
|
},
|
|
|
|
};
|