[READ-ONLY] Mirror of https://github.com/improsocial/impro An extensible Bluesky client for web impro.social
6

Configure Feed

Select the types of activity you want to include in your feed.

Update dragToDismiss tests

Grace Kind (Jul 18, 2026, 4:50 PM -0500) b8bc2121 978d1236

+10 -8
+10 -8
tests/e2e/specs/concerns/dragToDismiss.test.js
··· 148 148 await expect(reportDialog).toBeVisible(); 149 149 }); 150 150 151 - test("does not dismiss while the keyboard is open", async ({ page }) => { 152 - const reportDialog = await openReportDialog(page); 151 + test("still dismisses while the keyboard is open", async ({ page }) => { 152 + await openReportDialog(page); 153 153 await simulateKeyboardOpen(page); 154 154 await drag(page, { 155 155 eventSourceSelector: "report-dialog .report-dialog", 156 156 startY: 300, 157 157 endY: 430, 158 158 }); 159 - await expect(reportDialog).toBeVisible(); 159 + await expect( 160 + page.locator("report-dialog .report-dialog"), 161 + ).not.toBeVisible({ timeout: 2000 }); 160 162 }); 161 163 162 164 test("does not dismiss when the body is scrolled away from the top", async ({ ··· 322 324 await expect(contextMenu).toBeVisible(); 323 325 }); 324 326 325 - // Suppressing dismiss while the keyboard is open is the default, so this 326 - // caller gets it without opting in. 327 - test("does not dismiss while the keyboard is open", async ({ page }) => { 328 - const contextMenu = await openContextMenu(page); 327 + test("still dismisses while the keyboard is open", async ({ page }) => { 328 + await openContextMenu(page); 329 329 await simulateKeyboardOpen(page); 330 330 await drag(page, { 331 331 eventSourceSelector: "context-menu .context-menu-container.open", 332 332 startY: 300, 333 333 endY: 400, 334 334 }); 335 - await expect(contextMenu).toBeVisible(); 335 + await expect( 336 + page.locator("context-menu .context-menu[open]"), 337 + ).not.toBeVisible({ timeout: 2000 }); 336 338 }); 337 339 }); 338 340