Upload 15 files
Browse files
tests/test_pass46_ui_regressions.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def test_selecting_run_does_not_force_tab_switch():
|
| 5 |
+
text = Path("web/static/runs.js").read_text(encoding="utf-8")
|
| 6 |
+
select_run = text.split("async function selectRun", 1)[1].split("function renderRunDetail", 1)[0]
|
| 7 |
+
assert "switchView(" not in select_run
|
| 8 |
+
assert "Keep the user on the current tab" in select_run
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def test_mobile_css_prevents_letter_by_letter_wrapping():
|
| 12 |
+
css = Path("web/static/app.css").read_text(encoding="utf-8")
|
| 13 |
+
assert "Pass 46: mobile framing" in css
|
| 14 |
+
assert "word-break: normal" in css
|
| 15 |
+
assert "grid-template-columns:1fr!important" in css
|
| 16 |
+
assert ".nav-item{flex:0 0 auto" in css
|