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 -6
View File
@@ -2,7 +2,7 @@
import time
from playwright.sync_api import expect
from tests.conftest import BASE_URL, assert_no_horizontal_overflow
from tests.conftest import BASE_URL, assert_no_horizontal_overflow, click_menu_action
def _unique():
@@ -23,7 +23,7 @@ def _compose(page, token, visibility=None):
def _edit_visibility(page, url, value):
page.goto(url, wait_until="domcontentloaded")
page.locator("[data-modal='edit-post-modal']").click()
click_menu_action(page.locator("#post-actions-panel [data-modal='edit-post-modal']"))
page.select_option("#edit-post-visibility", value)
page.locator("#edit-post-form button.btn-primary").click()
page.wait_for_url(url, wait_until="domcontentloaded")
@@ -38,7 +38,7 @@ def test_new_post_defaults_to_published(alice):
page, _ = alice
token = _unique()
url = _compose(page, token)
page.locator("[data-modal='edit-post-modal']").click()
click_menu_action(page.locator("#post-actions-panel [data-modal='edit-post-modal']"))
expect(page.locator("#edit-post-visibility")).to_have_value("published")
assert _feed_has(page, token)
page.goto(url, wait_until="domcontentloaded")
@@ -57,7 +57,7 @@ def test_create_hidden_post_leaves_the_feed(alice):
page, _ = alice
token = _unique()
url = _compose(page, token, "hidden")
page.locator("[data-modal='edit-post-modal']").click()
click_menu_action(page.locator("#post-actions-panel [data-modal='edit-post-modal']"))
expect(page.locator("#edit-post-visibility")).to_have_value("hidden")
assert not _feed_has(page, token)
page.goto(url, wait_until="domcontentloaded")
@@ -92,7 +92,7 @@ def test_offline_post_is_not_shown_to_other_members(alice, bob):
def test_edit_form_lists_the_three_choices(alice):
page, _ = alice
_compose(page, _unique())
page.locator("[data-modal='edit-post-modal']").click()
click_menu_action(page.locator("#post-actions-panel [data-modal='edit-post-modal']"))
options = page.locator("#edit-post-visibility option")
assert options.all_text_contents() == ["Published", "Hidden", "Offline"]
@@ -100,6 +100,6 @@ def test_edit_form_lists_the_three_choices(alice):
def test_visibility_field_fits_a_phone(mobile_page):
page, _ = mobile_page
_compose(page, _unique(), "hidden")
page.locator("[data-modal='edit-post-modal']").click()
click_menu_action(page.locator("#post-actions-panel [data-modal='edit-post-modal']"))
expect(page.locator("#edit-post-visibility")).to_be_visible()
assert_no_horizontal_overflow(page, ".post-page")