-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test to test a subset of sites from the coverage data
- Loading branch information
1 parent
b3d2be6
commit 187a014
Showing
3 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import coverageData from "../data/coverage.json"; | ||
import generateCMPTests from "../playwright/runner"; | ||
|
||
const region = (process.env.REGION || "US").trim(); | ||
|
||
Object.keys(coverageData).forEach((name) => { | ||
if (!coverageData[name][region]) { | ||
// no coverage in this region | ||
return; | ||
} | ||
const siteList = coverageData[name][region].exampleSites.slice(0, 1); | ||
generateCMPTests(name, siteList, { | ||
testOptIn: false, | ||
}); | ||
}); |