feat(ui): refine timeline and blockquote layouts
This commit is contained in:
@@ -85,6 +85,21 @@ describe("@wrnexus/ui redesign component pack", () => {
|
||||
expect(source).toContain('.wrn-hero[data-full-bleed="true"]');
|
||||
});
|
||||
|
||||
test("Timeline supports numbered data items without styling every row as interactive", async () => {
|
||||
const source = await readFile(join(componentsDir, "Timeline.wrn"), "utf8");
|
||||
expect(source).toContain("numbered: boolean = false");
|
||||
expect(source).toContain("data-interactive");
|
||||
expect(source).toContain('data-interactive="true"');
|
||||
expect(source).toContain('.wrn-timeline__item[data-interactive="true"] { cursor: pointer; }');
|
||||
});
|
||||
|
||||
test("Blockquote provides constrained contained presentation", async () => {
|
||||
const source = await readFile(join(componentsDir, "Blockquote.wrn"), "utf8");
|
||||
expect(source).toContain('maxWidth: string = "xl"');
|
||||
expect(source).toContain('data-variant="spotlight"');
|
||||
expect(source).toContain('data-max-width="full"');
|
||||
});
|
||||
|
||||
test("contains every replacement and new component", async () => {
|
||||
const files = new Set(await readdir(componentsDir));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user