Improve shift report mode navigation
This commit is contained in:
1 parent
dcde029bc7
commit
211fb45d52
5 files changed
+61
-3
No files matched your search
@@ -25,6 +25,15 @@ def page(value):
|
||||
)
|
||||
|
||||
|
||||
def test_shift_report_mode_navigation():
|
||||
html = page(material_report((10,)))
|
||||
assert '<nav class="mode-nav" aria-label="Bereich wählen">' in html
|
||||
assert '<a href="/" aria-current="page">Schichtbericht</a>' in html
|
||||
assert '<a href="/orders">Fertigungsauftrag</a>' in html
|
||||
assert html.split("</style>", 1)[1].count('aria-current="page"') == 1
|
||||
assert ".mode-nav a:focus-visible" in html
|
||||
|
||||
|
||||
def test_multiple_materials_chart_and_table():
|
||||
html = page(material_report((10, 30)))
|
||||
assert '<figure class="material-chart">' in html
|
||||
|
||||
Reference in new issue
Block a user