File size: 826 Bytes
c720f6b
 
 
bf2fa25
c720f6b
bf2fa25
c720f6b
 
 
 
bf2fa25
c720f6b
fab8b21
 
 
b618cc8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from pathlib import Path


def test_selecting_run_still_does_not_force_hidden_navigation():
    text = Path("web/static/runs.js").read_text(encoding="utf-8")
    select_run = text.split("async function selectRun", 1)[1].split("function renderSelectedLinks", 1)[0]
    assert "switchView(" not in select_run
    assert "Keep the user on the current tab" in select_run


def test_mobile_css_prevents_letter_by_letter_wrapping_in_one_page_layout():
    css = Path("web/static/app.css").read_text(encoding="utf-8")
    compact = css.replace(" ", "")
    assert "word-break:normal" in compact
    assert "@media(max-width:720px)" in compact
    assert ".topbar,.workspace-grid,.space-test-grid,.editor-grid,.test-top-row,.two-cols,.active-meta,.selected-grid,.validation-grid,.bucket-actions{grid-template-columns:1fr}" in compact