Serve Dock directly and add explicit navigation feedback
This commit is contained in:
1 parent
645afe3ebf
commit
84c4b3030a
77 files changed
+477
-920
No files matched your search
+6
-18
@@ -291,40 +291,28 @@ try {
|
||||
await reset();
|
||||
},
|
||||
);
|
||||
await check("Appearance theme and gallery synchronization", async () => {
|
||||
await p.goto(path("appearance"));
|
||||
await check("Standalone appearance persists and exports", async () => {
|
||||
await p.goto(base + "/?page=appearance&theme=light");
|
||||
await p.locator("[data-identity=theme][data-theme=dark]").click();
|
||||
await p.reload();
|
||||
assert.equal(await p.locator("body").getAttribute("data-theme"), "dark");
|
||||
await p.goto(base + "/playground/?concept=dock");
|
||||
await p.locator("#page").selectOption("appearance");
|
||||
await p
|
||||
.frameLocator("#preview-a")
|
||||
.locator("[data-identity=theme][data-theme=dark]")
|
||||
.click();
|
||||
await p.waitForFunction(
|
||||
() => document.querySelector("#theme").value === "dark",
|
||||
);
|
||||
await p
|
||||
.frameLocator("#preview-a")
|
||||
.locator("body[data-theme=dark]")
|
||||
.waitFor();
|
||||
assert.equal(
|
||||
(
|
||||
await p
|
||||
.frameLocator("#preview-a")
|
||||
.locator("html")
|
||||
.evaluate((el) => el.style.getPropertyValue("--color-accent"))
|
||||
).trim(),
|
||||
tokensFor("dock", "dark")["color.accent"],
|
||||
);
|
||||
await p.goto(base + "/?page=tokens&theme=dark");
|
||||
const download = p.waitForEvent("download");
|
||||
await p.locator("#export").click();
|
||||
await p.locator("[data-action=download-system]").click();
|
||||
await (await download).saveAs("test-results/identity-export.zip");
|
||||
});
|
||||
await check(
|
||||
"Identity change across frames clears an open private dialog",
|
||||
async () => {
|
||||
await p.goto(base + "/playground/?concept=dock&page=security");
|
||||
await p.goto(base + "/patterns/IDENTITY.md");
|
||||
await p.setContent(
|
||||
`<iframe id="preview-a" style="width:48%;height:760px" src="${base}/playground/frame.html?concept=dock&page=security"></iframe><iframe id="preview-b" style="width:48%;height:760px" src="${base}/playground/frame.html?concept=dock&page=security"></iframe>`,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user