Split randomizer views and align NDS toolbox vocabulary
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 17s
This commit is contained in:
parent
6b85e58765
commit
fef7735a1d
57 changed files with 4932 additions and 4815 deletions
|
|
@ -19,6 +19,10 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
const styleMixins = await readFile("website/src/styles/_mixins.scss", "utf8");
|
||||
const styleShell = await readFile("website/src/styles/_shell.scss", "utf8");
|
||||
const styleCards = await readFile("website/src/styles/_cards.scss", "utf8");
|
||||
const styleSurfaces = await readFile("website/src/styles/design-system/_surfaces.scss", "utf8");
|
||||
const styleControlsButtons = await readFile("website/src/styles/design-system/controls/_buttons.scss", "utf8");
|
||||
const styleAttributesButtons = await readFile("website/src/styles/design-system/attributes/_buttons.scss", "utf8");
|
||||
const goalTreeBranch = await readFile("website/src/features/toolboxes/modules/GoalTreeBranch.jsx", "utf8");
|
||||
const styleHome = await readJoinedStyles([
|
||||
"website/src/styles/_home.scss",
|
||||
"website/src/styles/home/_shared.scss",
|
||||
|
|
@ -216,10 +220,30 @@ test("style entrypoint and theme layers are wired", async () => {
|
|||
assert.match(styleGames, /\.game-layout/);
|
||||
assert.match(styleGames, /\.game-grid/);
|
||||
assert.match(styleGames, /\.filter-panel/);
|
||||
assert.match(styleSurfaces, /@mixin card-surface/);
|
||||
assert.match(styleSurfaces, /@mixin card-surface-hover/);
|
||||
assert.match(styleSurfaces, /@mixin card-cover-divider/);
|
||||
assert.match(styleCards, /@use "design-system\/surfaces"/);
|
||||
assert.match(styleCards, /surfaces\.card-surface/);
|
||||
assert.match(styleGames, /@use "\.\.\/design-system\/surfaces"/);
|
||||
assert.match(styleGames, /surfaces\.card-surface/);
|
||||
assert.match(styleGames, /surfaces\.card-cover-divider/);
|
||||
assert.match(styleMhwilds, /\.mhwilds-card/);
|
||||
assert.match(styleMhwilds, /\.mhwilds-flip-indicator/);
|
||||
assert.match(styleMhwilds, /@use "design-system\/surfaces"/);
|
||||
assert.match(styleMhwilds, /surfaces\.card-surface/);
|
||||
assert.match(styleMhwilds, /surfaces\.card-cover-divider/);
|
||||
assert.doesNotMatch(styleMhwilds, /\.game-(home-card|layout|grid)/);
|
||||
assert.match(styleCards, /compact-data-card/);
|
||||
assert.doesNotMatch(
|
||||
[
|
||||
goalTreeBranch,
|
||||
styleToolboxGoalTree,
|
||||
styleControlsButtons,
|
||||
styleAttributesButtons
|
||||
].join("\n"),
|
||||
/(?:data-size="tiny"|icon-button(?:-icon)?\(tiny\)|\$size == tiny)/
|
||||
);
|
||||
assert.match(styleOverlays, /overscroll-behavior: contain/);
|
||||
assert.match(styleResponsive, /@media \(max-width: 760px\)/);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue