File size: 1,115 Bytes
527bec3
 
 
bf2fa25
527bec3
bf2fa25
 
 
 
 
527bec3
 
bf2fa25
527bec3
bf2fa25
fab8b21
bf2fa25
527bec3
 
bf2fa25
527bec3
bf2fa25
 
527bec3
 
bf2fa25
 
 
fab8b21
bf2fa25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from pathlib import Path


def test_one_page_workspace_has_no_public_tabs_anymore():
    html = Path("web/index.html").read_text(encoding="utf-8")
    assert 'data-view="build"' not in html
    assert 'data-view="progress"' not in html
    assert 'data-view="validate"' not in html
    assert "Runs Explorer" in html
    assert "Active Run" in html


def test_new_build_panel_is_left_column_and_launch_focused():
    html = Path("web/index.html").read_text(encoding="utf-8")
    assert 'id="newBuildCard"' in html
    for text in ["New Build", "Build private Space", "Launch result"]:
        assert text in html


def test_runs_explorer_and_selected_run_are_integrated_on_same_page():
    html = Path("web/index.html").read_text(encoding="utf-8")
    for text in ["Runs Explorer", "Search runs by ID, model, or space", "Selected run", "Prefill Space Test"]:
        assert text in html


def test_space_test_panel_is_inline_not_tabbed():
    html = Path("web/index.html").read_text(encoding="utf-8")
    assert 'id="spaceTestSection"' in html
    assert "Space Test" in html
    assert "Launch validation" in html