Show unit price in revised estimate panel
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user