-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into bugfix/FOUR-10752
- Loading branch information
Showing
101 changed files
with
11,324 additions
and
9,090 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,5 @@ | |
} | ||
] | ||
], | ||
"env": { | ||
"test": { | ||
"plugins": ["istanbul"] | ||
} | ||
} | ||
"plugins": ["istanbul"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
const { defineConfig } = require("cypress"); | ||
const { prepareAudit, lighthouse } = require("@cypress-audit/lighthouse"); | ||
const { pa11y } = require("@cypress-audit/pa11y"); | ||
const globby = require("globby"); | ||
|
||
module.exports = defineConfig({ | ||
projectId: "c4pb2f", | ||
viewportWidth: 1140, | ||
viewportHeight: 668, | ||
video: false, | ||
fixturesFolder: "tests/e2e/fixtures", | ||
screenshotsFolder: "tests/e2e/screenshots", | ||
videosFolder: "tests/e2e/videos", | ||
downloadsFolder: "tests/e2e/downloads", | ||
experimentalMemoryManagement: true, | ||
numTestsKeptInMemory: 20, | ||
e2e: { | ||
// We've imported your old cypress plugins here. | ||
// You may want to clean this up later by importing these. | ||
setupNodeEvents(on, config) { | ||
require("@cypress/code-coverage/task")(on, config); | ||
// include any other plugin code... | ||
on("before:browser:launch", (browser = {}, launchOptions) => { | ||
prepareAudit(launchOptions); | ||
}); | ||
on("task", { | ||
lighthouse: lighthouse(), | ||
pa11y: pa11y(), | ||
// a task to find one file matching the given mask | ||
// returns just the first matching file | ||
async findFiles(mask) { | ||
if (!mask) { | ||
throw new Error("Missing a file mask to search"); | ||
} | ||
|
||
console.log("searching for files %s", mask); | ||
const list = await globby(mask); | ||
|
||
if (!list.length) { | ||
console.log("found no files"); | ||
|
||
return null; | ||
} | ||
|
||
console.log("found %d files, first one %s", list.length, list[0]); | ||
|
||
return list[0]; | ||
} | ||
}); | ||
// It's IMPORTANT to return the config object | ||
// with any changed environment variables | ||
return config; | ||
}, | ||
testIsolation: false, | ||
baseUrl: "http://localhost:5173", | ||
specPattern: "tests/e2e/specs/**/*.{js,jsx,ts,tsx}", | ||
supportFile: "tests/e2e/support/index.js", | ||
waitForAnimations: true | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.