feat(jobs): integrate table and board workspace

This commit is contained in:
cesnimda
2026-09-29 23:01:05 +02:00
parent 6fc8937701
commit 384dfa8a4b
35 changed files with 1191 additions and 60 deletions
+15 -8
View File
@@ -11,7 +11,7 @@ async function login(page: Page) {
await expect(page).toHaveURL(/\/dashboard$/);
}
test("kanban columns use dark theme surfaces", async ({ page }) => {
test("kanban columns use dark theme surfaces", async ({ page }, info) => {
let moveRequests = 0;
await page.addInitScript(() => {
window.localStorage.setItem("uiLanguage", "en");
@@ -96,11 +96,18 @@ test("kanban columns use dark theme surfaces", async ({ page }) => {
await expect.poll(() => moveRequests).toBe(2);
await page.setViewportSize({ width: 375, height: 812 });
const mobileScroll = await page.evaluate(() => {
document.documentElement.scrollLeft = 999;
const scrollLeft = document.documentElement.scrollLeft;
document.documentElement.scrollLeft = 0;
return scrollLeft;
});
expect(mobileScroll).toBe(0);
// The shared toolbar switches its responsive representation through useMediaQuery.
// Assert the settled observable layout, not the frame before React handles resize.
const mobileScrollSamples: number[] = [];
await expect.poll(async () => {
const scroll = await page.evaluate(() => {
document.documentElement.scrollLeft = 999;
const scrollLeft = document.documentElement.scrollLeft;
document.documentElement.scrollLeft = 0;
return scrollLeft;
});
mobileScrollSamples.push(scroll);
return scroll;
}).toBe(0);
await info.attach("mobile-resize-scroll-samples", { body: JSON.stringify(mobileScrollSamples), contentType: "application/json" });
});