-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathcypress.config.ts
More file actions
34 lines (33 loc) · 779 Bytes
/
Copy pathcypress.config.ts
File metadata and controls
34 lines (33 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { defineConfig } from "cypress";
import {
structuredData,
StructuredDataParam,
StructuredDataResult,
} from "./cypress/plugins/structured-data-testing-tool";
export default defineConfig({
e2e: {
baseUrl: "https://www.apple.com",
supportFile: false,
setupNodeEvents(on, config) {
// bind to the event we care about
on("task", {
async structuredData(
param: StructuredDataParam
): Promise<StructuredDataResult> {
return await structuredData(param);
},
});
},
},
fixturesFolder: false,
reporter: "junit",
reporterOptions: {
mochaFile: "../../report/[hash].xml",
toConsole: true,
},
retries: {
runMode: 2,
openMode: 0,
},
screenshotOnRunFailure: false,
});