Show unit price in revised estimate panel

This commit is contained in:
anor
2026-12-02 22:05:54 +10:00
parent fa3596356c
commit 74553c0f4a
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -77,6 +77,7 @@ def test_choice_replaces_current_answer_without_new_bubble(browser, site):
cssWidth: window.innerWidth,
headDisplay: getComputedStyle(window._answer.querySelector('.est-header-row')).display,
hostClass: window._answer.className,
unitPrice: window._answer.querySelector('.est-table tr:not(.est-header-row) td:nth-child(6)')?.textContent,
horizontalOverflow: document.documentElement.scrollWidth > window.innerWidth
})""")
screenshot_dir = os.environ.get("INLINE_ESTIMATE_SCREENSHOTS")
@@ -93,6 +94,7 @@ def test_choice_replaces_current_answer_without_new_bubble(browser, site):
assert "240" in state["text"] and "4 квартал 2026" in state["text"]
assert state["posts"][0]["zone_id"] == 12
assert state["posts"][0]["period_id"] == 404
assert state["unitPrice"] == "120,00"
assert state["headDisplay"] == "none", state
assert not state["horizontalOverflow"]