Keep composers usable, group actions and notifications, and drop the tool-count cap

Comment and post layouts stay full width on small screens. Secondary actions live in the More menu. Notifications can be grouped and throttled, and Enter can submit when that profile setting is on. Emulated-tool models accept large catalogs, with reserved names aliased on the wire and the catalog cached per owner. A dropped service-worker navigation is retried once. The test server waits 120s to finish importing before it is stopped.
This commit is contained in:
2026-11-12 15:29:27 +01:00
parent dbdd0d29dd
commit 8a48e3ef85
103 changed files with 2680 additions and 378 deletions
+6 -7
View File
@@ -10,6 +10,7 @@ from tests.conftest import (
BASE_URL,
assert_no_horizontal_overflow,
assert_share_copies,
click_menu_action,
)
from devplacepy.database import get_table
from devplacepy.utils import make_combined_slug
@@ -201,8 +202,7 @@ def test_edit_gist(alice, app_server):
page, _ = alice
title = f"Edit Test Original {int(time.time())}"
_create_gist(page, title=title, source_code="x = 1")
page.locator("button:has-text('Edit')").wait_for(state="visible", timeout=5000)
page.click("button:has-text('Edit')")
click_menu_action(page.locator("#gist-actions-panel [data-modal='edit-gist-modal']"))
page.wait_for_timeout(800)
new_title = f"Edit Test Updated {int(time.time())}"
page.fill("#edit-gist-title", new_title)
@@ -230,8 +230,7 @@ def test_delete_gist(alice, app_server):
page, _ = alice
title = f"Delete Test {int(time.time())}"
_create_gist(page, title=title, source_code="delete_me = True")
page.locator("button[data-confirm='Delete this gist?']").wait_for(state="visible", timeout=5000)
page.click("button[data-confirm='Delete this gist?']")
click_menu_action(page.locator("#gist-actions-panel button[data-confirm='Delete this gist?']"))
page.locator(".dialog-overlay.visible .dialog-confirm").click()
page.wait_for_url(f"{BASE_URL}/gists", timeout=10000, wait_until="domcontentloaded")
@@ -595,7 +594,7 @@ def test_gist_created_hidden_leaves_the_listing(alice):
def _edit_gist_visibility(page, url, value):
page.goto(url, wait_until="domcontentloaded")
page.locator("[data-modal='edit-gist-modal']").click()
click_menu_action(page.locator("#gist-actions-panel [data-modal='edit-gist-modal']"))
page.select_option("#edit-gist-visibility", value)
page.locator("#edit-gist-modal button.btn-primary").click()
page.wait_for_url(url, wait_until="domcontentloaded")
@@ -621,7 +620,7 @@ def test_gist_edit_modal_changes_visibility(alice):
page, _ = alice
title = f"VisGistEdit{int(time.time() * 1000)}"
url = _create_gist_with_visibility(page, title, None)
page.locator("[data-modal='edit-gist-modal']").click()
click_menu_action(page.locator("#gist-actions-panel [data-modal='edit-gist-modal']"))
expect(page.locator("#edit-gist-visibility")).to_have_value("published")
page.select_option("#edit-gist-visibility", "hidden")
page.locator("#edit-gist-modal button.btn-primary").click()
@@ -633,6 +632,6 @@ def test_gist_visibility_field_fits_a_phone(mobile_page):
page, _ = mobile_page
title = f"VisGistPhone{int(time.time() * 1000)}"
_create_gist_with_visibility(page, title, "hidden")
page.locator("[data-modal='edit-gist-modal']").click()
click_menu_action(page.locator("#gist-actions-panel [data-modal='edit-gist-modal']"))
expect(page.locator("#edit-gist-visibility")).to_be_visible()
assert_no_horizontal_overflow(page, ".gist-detail-page")