Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions services/demo-console/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ h1 {
}

.service-panel {
overflow: hidden;
overflow-x: auto;
border: 1px solid #d7dee2;
border-radius: 6px;
background: #ffffff;
Expand Down Expand Up @@ -193,7 +193,4 @@ h1 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-panel {
overflow-x: auto;
}
}
19 changes: 19 additions & 0 deletions tests/demo_console_test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,25 @@ setup() {
[[ "$output" == *"demo-console catalog contains"* ]]
}

@test "demo console table remains scrollable below its minimum width" {
run python3 - "$TEST_ROOT/services/demo-console/src/App.css" <<'PY'
import re
import sys

css = open(sys.argv[1], encoding="utf-8").read()
panel = re.search(r"\.service-panel\s*\{([^}]*)\}", css, re.S)
if panel is None:
raise SystemExit(".service-panel rule is missing")
styles = panel.group(1)
if "overflow-x: auto" not in styles:
raise SystemExit(".service-panel must expose horizontal scrolling")
if "overflow: hidden" in styles:
raise SystemExit(".service-panel must not hide the wider service table")
PY

[ "$status" -eq 0 ]
}

@test "demo console build compiles production entry artifacts" {
run "$TEST_ROOT/services/demo-console/build.sh"

Expand Down
Loading