Keep approved Dock and add row feedback with stable themed scrollbars
This commit is contained in:
1 parent
c41a5e4276
commit
645afe3ebf
101 files changed
+580
-1348
No files matched your search
+34
-35
@@ -32,8 +32,13 @@ try {
|
||||
await check("HTTP root and gallery", async () => {
|
||||
const r = await page.goto(base);
|
||||
assert.equal(r.status(), 200);
|
||||
await page.locator("#concepts button").first().waitFor();
|
||||
assert.equal(await page.locator("#concepts button").count(), 6);
|
||||
assert.equal(await page.locator("#concepts, #compare, #second").count(), 0);
|
||||
assert.equal(
|
||||
/EXPLORATIONS|Six perspectives|Шесть точек/.test(
|
||||
await page.locator("body").innerText(),
|
||||
),
|
||||
false,
|
||||
);
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
await page.screenshot({ path: "references/gallery.png", fullPage: true });
|
||||
});
|
||||
@@ -94,7 +99,7 @@ try {
|
||||
await check(
|
||||
"User search, filter, pagination, sorting, empty state",
|
||||
async () => {
|
||||
await page.goto(url("relay", "users"));
|
||||
await page.goto(url("dock", "users"));
|
||||
await page.locator("#user-search").fill("anna");
|
||||
assert.equal(await page.locator("tbody tr").count(), 1);
|
||||
await page.locator("#user-search").fill("no-such-person");
|
||||
@@ -136,7 +141,7 @@ try {
|
||||
await page.locator("[data-action=reset-users]").click();
|
||||
});
|
||||
await check("Settings persistence and keyboard tabs", async () => {
|
||||
await page.goto(url("grid", "settings"));
|
||||
await page.goto(url("dock", "settings"));
|
||||
await page.locator("input[name=name]").fill("Anidev Test");
|
||||
await page.locator("#settings-form button[type=submit]").click();
|
||||
await page.reload();
|
||||
@@ -157,7 +162,7 @@ try {
|
||||
assert.equal(await page.locator("#mfa").isChecked(), false);
|
||||
});
|
||||
await check("Auth native validation and demo sign in", async () => {
|
||||
await page.goto(url("axis", "auth"));
|
||||
await page.goto(url("dock", "auth"));
|
||||
await page.locator("input[name=email]").fill("test@example.com");
|
||||
await page.locator("input[name=password]").fill("short");
|
||||
await page.locator("#auth-form button[type=submit]").click();
|
||||
@@ -235,33 +240,27 @@ try {
|
||||
);
|
||||
}
|
||||
});
|
||||
await check(
|
||||
"Gallery controls, comparison and actual mobile viewport",
|
||||
async () => {
|
||||
await page.goto(base);
|
||||
await page.locator("[data-concept=ledger]").click();
|
||||
await page.locator("#theme").selectOption("dark");
|
||||
await page.locator("#density").selectOption("compact");
|
||||
await page.locator("#page").selectOption("users");
|
||||
await page.locator("[data-size=mobile]").click();
|
||||
await page.locator("#compare").check();
|
||||
await page.locator("#second").selectOption("signal");
|
||||
await page.frameLocator("#preview-b").locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await page
|
||||
.frameLocator("#preview-a")
|
||||
.locator("body")
|
||||
.getAttribute("data-concept"),
|
||||
"ledger",
|
||||
);
|
||||
assert.ok(
|
||||
await page.locator("#preview-a").evaluate((e) => e.clientWidth <= 390),
|
||||
);
|
||||
await page.locator("#accent").fill("#ffcc00");
|
||||
await page.locator("#accent").dispatchEvent("change");
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
},
|
||||
);
|
||||
await check("Approved Dock controls and actual mobile viewport", async () => {
|
||||
await page.goto(base);
|
||||
await page.locator("#theme").selectOption("dark");
|
||||
await page.locator("#density").selectOption("compact");
|
||||
await page.locator("#page").selectOption("users");
|
||||
await page.locator("[data-size=mobile]").click();
|
||||
await page.frameLocator("#preview-a").locator("#user-search").waitFor();
|
||||
assert.equal(
|
||||
await page
|
||||
.frameLocator("#preview-a")
|
||||
.locator("body")
|
||||
.getAttribute("data-concept"),
|
||||
"dock",
|
||||
);
|
||||
assert.ok(
|
||||
await page.locator("#preview-a").evaluate((e) => e.clientWidth <= 390),
|
||||
);
|
||||
await page.locator("#accent").fill("#ffcc00");
|
||||
await page.locator("#accent").dispatchEvent("change");
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
});
|
||||
await check("Mobile navigation and density variants", async () => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
for (const c of concepts) {
|
||||
@@ -287,19 +286,19 @@ try {
|
||||
}
|
||||
await page.setViewportSize({ width: 1280, height: 900 });
|
||||
await page.goto(base);
|
||||
await page.locator("[data-concept=ledger]").click();
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
});
|
||||
await check("Export archive download", async () => {
|
||||
const download = page.waitForEvent("download");
|
||||
await page.locator("#export").click();
|
||||
const d = await download;
|
||||
await d.saveAs("test-results/anidev-export.zip");
|
||||
assert.match(d.suggestedFilename(), /anidev-ledger.zip/);
|
||||
assert.match(d.suggestedFilename(), /anidev-dock.zip/);
|
||||
});
|
||||
await check("Gallery mobile overflow", async () => {
|
||||
await page.setViewportSize({ width: 390, height: 844 });
|
||||
await page.goto(base);
|
||||
await page.locator("#concepts button").first().waitFor();
|
||||
await page.frameLocator("#preview-a").locator("h1").waitFor();
|
||||
assert.ok(
|
||||
await page.evaluate(
|
||||
() => document.documentElement.scrollWidth <= innerWidth + 1,
|
||||
|
||||
Reference in new issue
Block a user