Replace source assertions with browser coverage
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
d0e1fd73b1
commit
e6e08b458c
3 changed files with 94 additions and 14 deletions
|
|
@ -11,7 +11,6 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
const overlays = await readFile("website/src/components/AppOverlays.jsx", "utf8");
|
||||
const imageViewer = await readFile("website/src/components/ImageViewer.jsx", "utf8");
|
||||
const homePage = await readFile("website/src/pages/HomePage.jsx", "utf8");
|
||||
const homeOnboarding = await readFile("website/src/pages/HomeOnboardingSection.jsx", "utf8");
|
||||
const aboutPage = await readFile("website/src/pages/AboutPage.jsx", "utf8");
|
||||
const routeContent = await readFile("website/src/router/RouteContent.jsx", "utf8");
|
||||
|
||||
|
|
@ -22,7 +21,6 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
assert.match(source, /hooks\/useGameFilters\.js/);
|
||||
assert.doesNotMatch(source, /DEFAULT_SITE_CONTENT/);
|
||||
assert.match(gameFiltersHook, /export function useGameFilters/);
|
||||
assert.match(routeContent, /pages\/AboutPage\.jsx/);
|
||||
assert.match(routeContent, /features\/games\/GameRoute\.jsx/);
|
||||
assert.doesNotMatch(shell, /content\.navigation\.library/);
|
||||
assert.match(shell, /sidebar-about-link/);
|
||||
|
|
@ -32,21 +30,9 @@ test("vite entrypoint and app shell are wired", async () => {
|
|||
assert.match(overlays, /uid\("marker"\)/);
|
||||
assert.match(imageViewer, /export function ImageViewer/);
|
||||
assert.match(imageViewer, /function openImageInNewTab/);
|
||||
assert.match(homePage, /HomeOnboardingSection/);
|
||||
assert.match(homePage, /import\.meta\.env\.DEV \|\| toolboxes\.length === 0/);
|
||||
assert.match(homePage, /setCreateModal\(\{ tutorial: true \}\)/);
|
||||
assert.match(homePage, /dragon-home\.png/);
|
||||
assert.match(homeOnboarding, /export function HomeOnboardingSection/);
|
||||
assert.match(homeOnboarding, /prefers-reduced-motion: reduce/);
|
||||
assert.match(homeOnboarding, /onCreateToolbox/);
|
||||
assert.match(homeOnboarding, /content\.primaryAction/);
|
||||
assert.match(homeOnboarding, /content\.sliderTitle/);
|
||||
assert.match(homeOnboarding, /home-onboarding-dots/);
|
||||
assert.match(aboutPage, /export function AboutPage/);
|
||||
assert.match(aboutPage, /HomeOnboardingSection/);
|
||||
assert.match(aboutPage, /siteContent\.home\.onboarding/);
|
||||
assert.match(aboutPage, /module-icon-\$\{group\.icon \|\| "notepad"\}/);
|
||||
assert.match(aboutPage, /about-tool-examples/);
|
||||
});
|
||||
|
||||
test("project documentation tracks storage and feature updates", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue