Expose norm finder in chat header

This commit is contained in:
anor
2026-12-04 05:13:32 +10:00
parent add8b4bee2
commit e4fd99ff35
4 changed files with 24 additions and 4 deletions
+11
View File
@@ -99,6 +99,17 @@ def test_choice_replaces_current_answer_without_new_bubble(browser, site):
assert not state["horizontalOverflow"]
def test_norm_finder_entry_is_visible_after_login_on_desktop_and_phone(browser, site):
for width in (1280, 390):
page = browser.new_page(viewport={"width": width, "height": 800})
page.goto(site)
link = page.locator('#chat-screen .header-actions a[href="/podbor"]')
link.wait_for(state="visible")
assert link.inner_text() == "Подбор норм"
assert link.evaluate("el => el.getBoundingClientRect().width > 0")
page.close()
def test_saved_revision_reopens_inside_same_bubble(browser, site):
page = browser.new_page(viewport={"width": 390, "height": 844})
page.goto(site)