Polish approved 1.0 scope and verify portable previews
This commit is contained in:
1 parent
1819f35f91
commit
2b45df2816
181 files changed
+996
-139
No files matched your search
+49
-1
@@ -226,7 +226,7 @@ try {
|
||||
await page.locator("#page-title").filter({ hasText: "Логи" }).waitFor();
|
||||
assert.equal(
|
||||
await page.locator(".dock-brand").getAttribute("aria-expanded"),
|
||||
"true",
|
||||
width <= 600 ? "false" : "true",
|
||||
);
|
||||
await page.keyboard.press("Escape");
|
||||
await page.locator("[data-copy-input]").click();
|
||||
@@ -273,6 +273,13 @@ try {
|
||||
await page.screenshot({
|
||||
path: "references/integration/dynamic-menu-dark.png",
|
||||
});
|
||||
for (const id of ["statistics", "documents"]) {
|
||||
await page.keyboard.press("Tab");
|
||||
assert.equal(
|
||||
await page.evaluate(() => document.activeElement?.dataset.navId),
|
||||
id,
|
||||
);
|
||||
}
|
||||
await page.keyboard.press("Tab");
|
||||
assert.equal(
|
||||
await page
|
||||
@@ -294,6 +301,13 @@ try {
|
||||
.evaluate((e) => e === document.activeElement),
|
||||
true,
|
||||
);
|
||||
for (const id of ["documents", "statistics"]) {
|
||||
await page.keyboard.press("Shift+Tab");
|
||||
assert.equal(
|
||||
await page.evaluate(() => document.activeElement?.dataset.navId),
|
||||
id,
|
||||
);
|
||||
}
|
||||
await page.keyboard.press("Shift+Tab");
|
||||
assert.equal(
|
||||
await page.evaluate(() => document.activeElement?.dataset.navId),
|
||||
@@ -614,6 +628,40 @@ try {
|
||||
accountRoot.remove();
|
||||
});
|
||||
passed++;
|
||||
// The new content modules must work from the isolated copied starter too.
|
||||
account = { ...savedAccount, panel: "admin", status: "active" };
|
||||
config = structuredClone(original);
|
||||
for (const route of [
|
||||
"statistics&server=edge-01",
|
||||
"documents&path=/server-guide.md",
|
||||
]) {
|
||||
await page.goto(`${origin}/?page=${route}`);
|
||||
await page
|
||||
.locator(
|
||||
route.startsWith("statistics")
|
||||
? ".statistics-panel .chart-plot"
|
||||
: ".markdown-body h1",
|
||||
)
|
||||
.first()
|
||||
.waitFor();
|
||||
assert.equal(
|
||||
await page.evaluate(
|
||||
() => document.documentElement.scrollWidth > innerWidth,
|
||||
),
|
||||
false,
|
||||
);
|
||||
if (route.startsWith("statistics")) {
|
||||
assert.equal(await page.locator(".statistics-panel").count(), 8);
|
||||
await page.locator("[data-statistics-range]").selectOption("15m");
|
||||
} else {
|
||||
await page.locator(".code-editor textarea").fill("# Portable Markdown");
|
||||
await page
|
||||
.locator(".markdown-body h1")
|
||||
.filter({ hasText: "Portable Markdown" })
|
||||
.waitFor();
|
||||
}
|
||||
passed++;
|
||||
}
|
||||
assert.ok(requests.every((url) => url.startsWith(origin + "/")));
|
||||
assert.ok(
|
||||
!requests.some((url) => /playground|demo-identity|frame\.js/.test(url)),
|
||||
|
||||
Reference in new issue
Block a user