Render markdown in gist and project sidebar titles; add content visibility and GIF picker

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-05 17:59:21 +01:00
co-authored by Claude Sonnet 5.5
parent bc11475f29
commit 05d6633204
154 changed files with 6394 additions and 289 deletions
+33 -2
View File
@@ -7,9 +7,40 @@ def _open_project_with_delete(page, title):
proj_url = _make_project_ui(page, title)
slug = proj_url.rstrip("/").split("/")[-1]
return proj_url, slug
TRIGGER = "[data-action-menu-trigger]"
PANEL = "[data-action-menu-panel]"
def _open_menu(page):
# aria-expanded can lag behind the popover, so the open state that counts
# is whether the panel shows.
page.wait_for_function(
"() => document.querySelector('[data-action-menu-panel]') !== null"
" || document.querySelector('[data-action-menu-trigger]') === null"
)
panel = page.locator(PANEL)
if panel.count() and panel.evaluate("(el) => el.matches(':popover-open')"):
return
page.click(TRIGGER)
page.wait_for_function(
"() => document.querySelector('[data-action-menu-panel]').matches(':popover-open')"
)
def _menu_item(page, label):
return page.locator(
f"{PANEL} [data-menu-action]:has-text('{label}'), "
f"{PANEL} [data-menu-action][data-menu-label='{label}']"
)
def _pick(page, label):
_open_menu(page)
_menu_item(page, label).first.click()
def _click_delete(page):
page.locator(".project-actions-more").click()
page.locator(".context-menu-item:has-text('Delete')").click()
_pick(page, "Delete")
def test_data_confirm_opens_custom_dialog(alice):