feat(jobs): integrate table and board workspace
This commit is contained in:
@@ -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" });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user