|
|
|
@@ -3,6 +3,7 @@ import argparse
|
|
|
|
|
import json
|
|
|
|
|
import re
|
|
|
|
|
from pathlib import Path
|
|
|
|
|
from urllib.parse import parse_qs, urlsplit
|
|
|
|
|
|
|
|
|
|
from playwright.sync_api import expect, sync_playwright
|
|
|
|
|
|
|
|
|
@@ -14,8 +15,11 @@ NESTED = "自录数据统计与跨部门综合分析报表导航"
|
|
|
|
|
LEAF = "账户消耗录入与跨部门财务对账明细"
|
|
|
|
|
OTHER = "运营管理与跨部门协作流程工作中心"
|
|
|
|
|
TOP_LEAF = "独立账户消耗录入"
|
|
|
|
|
HOME = "自录转化统计"
|
|
|
|
|
DETAIL = "运营明细"
|
|
|
|
|
HIDDEN = "仅后台可见明细"
|
|
|
|
|
HIDDEN_ROOT = "隐藏目录"
|
|
|
|
|
TITLE = ".el-sub-menu__title"
|
|
|
|
|
POP = ".el-menu--popup:visible"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def setup_menu(fixture):
|
|
|
|
@@ -24,11 +28,19 @@ def setup_menu(fixture):
|
|
|
|
|
nested, = root["children"]
|
|
|
|
|
root["icon"] = "el-icon-Setting"
|
|
|
|
|
nested.update(name=NESTED, icon="el-icon-Folder")
|
|
|
|
|
# A real index child has an empty path. Its defaults must not disappear
|
|
|
|
|
# when normalizing the trailing slash or when restoring a work tab.
|
|
|
|
|
nested["children"][0]["params"] = '{"via":"index","dept":"QA 组"}'
|
|
|
|
|
nested["children"][1].update(name=LEAF, icon="el-icon-Document")
|
|
|
|
|
hidden = dict(menu(412, HIDDEN, "hidden", component="stats/self_input/account_cost"), is_show=0)
|
|
|
|
|
roots.append(menu(410, OTHER, "operations", children=[
|
|
|
|
|
menu(411, "运营明细", "details", component="stats/self_input/account_cost")]))
|
|
|
|
|
hidden, menu(411, DETAIL, "details?team=ops", component="stats/self_input/account_cost")]))
|
|
|
|
|
roots.append(dict(menu(420, TOP_LEAF, "solo", component="stats/self_input/account_cost"),
|
|
|
|
|
icon="local-icon-dingdan"))
|
|
|
|
|
roots.append(dict(menu(430, HIDDEN_ROOT, "hidden-root", children=[
|
|
|
|
|
menu(431, "隐藏目录的明细", "not-listed", component="stats/self_input/account_cost")]), is_show=0))
|
|
|
|
|
# The source of visibility is the returned menu tree, not the table's business-button permissions.
|
|
|
|
|
fixture.reads[SELF]["permissions"].remove("stats.personal_account_cost/add")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def settle(element):
|
|
|
|
@@ -136,6 +148,56 @@ def close_settings(page, drawer):
|
|
|
|
|
expect(drawer).to_be_hidden()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def route_at(page, path, query=None, *, trailing=False):
|
|
|
|
|
# Require the actual browser address (and all its parameters), not only a Vue component.
|
|
|
|
|
expected = "/admin/" + path
|
|
|
|
|
expect(page).to_have_url(re.compile(re.escape(expected) + ("" if trailing else "/?") + r"(?:\?.*)?$"))
|
|
|
|
|
parts = urlsplit(page.url)
|
|
|
|
|
if query is not None:
|
|
|
|
|
assert parse_qs(parts.query) == query, (path, query, parts.query)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def layout(page, rail, panel=None, *, expected_width=None):
|
|
|
|
|
settle(page.locator(".layout-default"))
|
|
|
|
|
rb = rail.bounding_box()
|
|
|
|
|
pb = panel.bounding_box() if panel is not None else None
|
|
|
|
|
edge = rb["x"] + rb["width"]
|
|
|
|
|
if pb:
|
|
|
|
|
assert abs(pb["x"] - edge) <= 2, ("gap/overlap between rails", rb, pb)
|
|
|
|
|
assert abs(pb["width"] - expected_width) <= 1, ("fixed second panel", pb, expected_width)
|
|
|
|
|
edge = pb["x"] + pb["width"]
|
|
|
|
|
main = page.locator("main").bounding_box()
|
|
|
|
|
header = page.locator(".app-header").bounding_box()
|
|
|
|
|
for el in (main, header):
|
|
|
|
|
assert abs(el["x"] - edge) <= 2, ("content overlaps or leaves blank space", edge, el)
|
|
|
|
|
assert abs(el["x"] + el["width"] - page.viewport_size["width"]) <= 2, el
|
|
|
|
|
return {k: round(v, 1) for k, v in {
|
|
|
|
|
"rail": rb["width"], "panel": pb["width"] if pb else 0, "main_x": main["x"]}.items()}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def clipped(row, selector, label):
|
|
|
|
|
el = row.locator(selector)
|
|
|
|
|
expect(row).to_have_accessible_name(label)
|
|
|
|
|
expect(row).to_have_attribute("title", label)
|
|
|
|
|
m = el.evaluate("""e => {
|
|
|
|
|
const r = e.getBoundingClientRect(), row = e.closest('button,a').getBoundingClientRect();
|
|
|
|
|
return {w:e.clientWidth, full:e.scrollWidth, style:getComputedStyle(e).textOverflow,
|
|
|
|
|
inside:r.left >= row.left && r.right <= row.right + 1};
|
|
|
|
|
}""")
|
|
|
|
|
assert 0 < m["w"] < m["full"] and m["style"] == "ellipsis" and m["inside"], (label, m)
|
|
|
|
|
return m
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def painted_bg(box):
|
|
|
|
|
return box.evaluate("""el => {
|
|
|
|
|
for (let p = el; p; p = p.parentElement) {
|
|
|
|
|
const c = getComputedStyle(p).backgroundColor.match(/[0-9.]+/g)?.map(Number);
|
|
|
|
|
if(c && (c.length === 3 || c[3] >= 0.99)) return c.slice(0,3);
|
|
|
|
|
}
|
|
|
|
|
return [255,255,255];
|
|
|
|
|
}""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def check(page, fixture, out):
|
|
|
|
|
page.goto(fixture.base + "/admin/login")
|
|
|
|
|
page.get_by_placeholder("请输入账号").fill(ACCOUNT)
|
|
|
|
@@ -144,76 +206,145 @@ def check(page, fixture, out):
|
|
|
|
|
expect(page.locator(".app-header").get_by_text(USER, exact=True)).to_be_visible(timeout=15000)
|
|
|
|
|
expect(page.locator("html")).to_have_attribute("data-admin-ui", "v2")
|
|
|
|
|
|
|
|
|
|
side = page.locator(".side:visible")
|
|
|
|
|
rail = side.locator(".menu")
|
|
|
|
|
r, n = title(rail, ROOT), title(rail, NESTED)
|
|
|
|
|
toggle(r, True)
|
|
|
|
|
toggle(n, False)
|
|
|
|
|
leaf = rail.get_by_text(LEAF, exact=True)
|
|
|
|
|
expect(leaf).to_be_hidden()
|
|
|
|
|
arrow = n.locator(".el-sub-menu__icon-arrow")
|
|
|
|
|
orientation = "(el) => [getComputedStyle(el).transform, el.innerHTML].join(' ')"
|
|
|
|
|
closed_state = arrow.evaluate(orientation)
|
|
|
|
|
toggle(n, True)
|
|
|
|
|
assert arrow.evaluate(orientation) != closed_state, "nested arrow did not indicate its new state"
|
|
|
|
|
expect(leaf).to_be_visible()
|
|
|
|
|
toggle(r, False)
|
|
|
|
|
expect(n).to_be_hidden()
|
|
|
|
|
other = title(rail, OTHER)
|
|
|
|
|
toggle(other, True)
|
|
|
|
|
expect(rail.get_by_text("运营明细", exact=True)).to_be_visible()
|
|
|
|
|
toggle(other, False)
|
|
|
|
|
expect(rail.get_by_text("运营明细", exact=True)).to_be_hidden()
|
|
|
|
|
|
|
|
|
|
report = {"expanded": expanded(rail)}
|
|
|
|
|
screenshot(page, out, "expanded")
|
|
|
|
|
# Move by Tab from its known preceding leaf, then activate the actual router link.
|
|
|
|
|
previous = rail.get_by_role("link", name="自录转化统计", exact=True)
|
|
|
|
|
previous.focus()
|
|
|
|
|
page.keyboard.press("Tab")
|
|
|
|
|
expect(rail.get_by_role("link", name=LEAF, exact=True)).to_be_focused()
|
|
|
|
|
page.keyboard.press("Enter")
|
|
|
|
|
expect(page.locator("main .personal-account-cost-page")).to_be_visible()
|
|
|
|
|
|
|
|
|
|
rail = page.get_by_role("navigation", name="一级菜单", exact=True)
|
|
|
|
|
panel = page.get_by_role("navigation", name="二级菜单", exact=True)
|
|
|
|
|
root = rail.get_by_role("button", name=ROOT, exact=True)
|
|
|
|
|
other = rail.get_by_role("button", name=OTHER, exact=True)
|
|
|
|
|
solo = rail.get_by_role("link", name=TOP_LEAF, exact=True)
|
|
|
|
|
branch = panel.get_by_role("button", name=NESTED, exact=True)
|
|
|
|
|
home = panel.get_by_role("link", name=HOME, exact=True)
|
|
|
|
|
cost = panel.get_by_role("link", name=LEAF, exact=True)
|
|
|
|
|
detail = panel.get_by_role("link", name=DETAIL, exact=True)
|
|
|
|
|
fold = page.locator(".app-header .fold")
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "true")
|
|
|
|
|
fold.focus()
|
|
|
|
|
page.keyboard.press("Enter")
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "false")
|
|
|
|
|
expect(rail.locator(".el-menu--collapse")).to_be_visible()
|
|
|
|
|
settle(side)
|
|
|
|
|
logo = side.locator(".logo img")
|
|
|
|
|
tab = lambda name: page.locator(".app-tabs").get_by_role("tab", name=name, exact=True)
|
|
|
|
|
h_path, h_query = "stats/self_input", {"via": ["index"], "dept": ["QA 组"]}
|
|
|
|
|
c_path, c_query = "stats/self_input/account_cost", {"via": ["sidebar"]}
|
|
|
|
|
d_path, d_query = "operations/details", {"team": ["ops"]}
|
|
|
|
|
|
|
|
|
|
def selected(group, leaf):
|
|
|
|
|
expect(rail.locator(".is-active")).to_have_count(1)
|
|
|
|
|
expect(group).to_have_class(re.compile(r"\bis-active\b"))
|
|
|
|
|
expect(leaf).to_have_attribute("aria-current", "page")
|
|
|
|
|
|
|
|
|
|
route_at(page, h_path + "/", trailing=True)
|
|
|
|
|
expect(tab(HOME)).to_have_count(1)
|
|
|
|
|
expect(home).to_be_visible()
|
|
|
|
|
selected(root, home)
|
|
|
|
|
expect(rail.get_by_text(HIDDEN_ROOT, exact=True)).to_have_count(0)
|
|
|
|
|
report = {"expanded": layout(page, rail, panel, expected_width=230)}
|
|
|
|
|
for width in (1216, 1440):
|
|
|
|
|
page.set_viewport_size({"width": width, "height": 960})
|
|
|
|
|
assert layout(page, rail, panel, expected_width=230) == report["expanded"]
|
|
|
|
|
logo = rail.locator(".logo img")
|
|
|
|
|
expect(logo).to_have_attribute("src", BRAND)
|
|
|
|
|
assert logo.evaluate("img => img.complete && img.naturalWidth > 0")
|
|
|
|
|
report["collapsed_centers"] = {
|
|
|
|
|
"logo": center(rail, logo, "brand image"),
|
|
|
|
|
"group": center(rail, r.locator(".menu-item-icon svg"), "root group icon"),
|
|
|
|
|
"no_icon_group": center(rail, other.locator(".menu-item-icon"), "root initial"),
|
|
|
|
|
"leaf": center(rail, rail.locator("a[href$='/solo'] .menu-item-icon svg"), "root leaf icon")
|
|
|
|
|
}
|
|
|
|
|
center(rail, logo, "logo")
|
|
|
|
|
report["long_labels"] = [clipped(other, ".dual-root-label", OTHER),
|
|
|
|
|
clipped(branch, ".dual-label", NESTED), clipped(cost, ".dual-label", LEAF)]
|
|
|
|
|
tag = branch.locator(".dual-label").bounding_box()
|
|
|
|
|
arrow = branch.locator(".dual-chevron")
|
|
|
|
|
expect(arrow).to_be_visible()
|
|
|
|
|
assert tag["x"] + tag["width"] < arrow.bounding_box()["x"]
|
|
|
|
|
assert cost.locator(".dual-label").bounding_box()["x"] > tag["x"] + 4
|
|
|
|
|
screenshot(page, out, "expanded")
|
|
|
|
|
|
|
|
|
|
initial = other.locator(".menu-item-icon")
|
|
|
|
|
assert initial.evaluate("""el => {
|
|
|
|
|
const s = getComputedStyle(el, '::before');
|
|
|
|
|
return el.textContent.trim() || (s.content !== 'none' && s.content !== 'normal' &&
|
|
|
|
|
s.content !== '""' && s.display !== 'none' && s.visibility === 'visible');
|
|
|
|
|
}"""), "an iconless root must retain a visible identifier in the collapsed rail"
|
|
|
|
|
# Mouse movements must not navigate, replace a selected root, or close the persistent panel.
|
|
|
|
|
other.hover()
|
|
|
|
|
page.locator("main").hover()
|
|
|
|
|
page.wait_for_timeout(650) # Longer than Element Plus's legacy hover/flyout close delay.
|
|
|
|
|
expect(home).to_be_visible()
|
|
|
|
|
selected(root, home)
|
|
|
|
|
expect(page.locator(".el-menu--popup:visible")).to_have_count(0)
|
|
|
|
|
|
|
|
|
|
# Element Plus teleports the submenu outside .side when collapsed.
|
|
|
|
|
r.hover()
|
|
|
|
|
popup_n = title(page.locator(POP), NESTED)
|
|
|
|
|
expect(popup_n).to_be_visible()
|
|
|
|
|
settle(popup_n.locator("xpath=ancestor::*[contains(concat(' ',normalize-space(@class),' '),' el-popper ')][1]"))
|
|
|
|
|
arrow_metrics(popup_n, NESTED)
|
|
|
|
|
popup_n.hover()
|
|
|
|
|
popup_leaf = page.locator(POP).get_by_text(LEAF, exact=True)
|
|
|
|
|
expect(popup_leaf).to_be_visible()
|
|
|
|
|
screenshot(page, out, "popup")
|
|
|
|
|
fold.hover()
|
|
|
|
|
expect(popup_leaf).to_be_hidden()
|
|
|
|
|
# Traverse the actual second/third level from the button, not simulated router pushes.
|
|
|
|
|
branch.focus()
|
|
|
|
|
orientation = "el => getComputedStyle(el).transform"
|
|
|
|
|
opened_angle = arrow.evaluate(orientation)
|
|
|
|
|
page.keyboard.press("Enter")
|
|
|
|
|
expect(branch).to_have_attribute("aria-expanded", "false")
|
|
|
|
|
expect(cost).to_be_hidden()
|
|
|
|
|
settle(branch)
|
|
|
|
|
assert opened_angle != arrow.evaluate(orientation), "directory chevron did not change direction"
|
|
|
|
|
page.keyboard.press("Space")
|
|
|
|
|
expect(branch).to_have_attribute("aria-expanded", "true")
|
|
|
|
|
page.keyboard.press("Tab")
|
|
|
|
|
expect(home).to_be_focused()
|
|
|
|
|
page.keyboard.press("Tab")
|
|
|
|
|
expect(cost).to_be_focused()
|
|
|
|
|
page.keyboard.press("Enter")
|
|
|
|
|
route_at(page, c_path, c_query)
|
|
|
|
|
selected(root, cost)
|
|
|
|
|
cost_page = page.locator("main .personal-account-cost-page")
|
|
|
|
|
expect(cost_page).to_be_visible()
|
|
|
|
|
expect(cost_page.get_by_role("button", name="新增", exact=True)).to_have_count(0)
|
|
|
|
|
|
|
|
|
|
# The startup redirect includes a final slash; the clicked index child omits it.
|
|
|
|
|
# Only one work tab survives this normalization, keeping its latest query intact.
|
|
|
|
|
home.click()
|
|
|
|
|
route_at(page, h_path, h_query, trailing=True)
|
|
|
|
|
expect(tab(HOME)).to_have_count(1)
|
|
|
|
|
expect(tab(HOME)).to_have_attribute("aria-selected", "true")
|
|
|
|
|
selected(root, home)
|
|
|
|
|
other.click()
|
|
|
|
|
route_at(page, d_path, d_query)
|
|
|
|
|
selected(other, detail)
|
|
|
|
|
expect(panel.get_by_text(HIDDEN, exact=True)).to_have_count(0)
|
|
|
|
|
expect(branch).to_have_count(0)
|
|
|
|
|
expect(cost_page).to_be_visible()
|
|
|
|
|
expect(detail).to_be_visible()
|
|
|
|
|
page.go_back()
|
|
|
|
|
route_at(page, h_path, h_query)
|
|
|
|
|
selected(root, home)
|
|
|
|
|
page.go_forward()
|
|
|
|
|
route_at(page, d_path, d_query)
|
|
|
|
|
selected(other, detail)
|
|
|
|
|
tab(HOME).click()
|
|
|
|
|
route_at(page, h_path, h_query)
|
|
|
|
|
selected(root, home)
|
|
|
|
|
tab(DETAIL).click()
|
|
|
|
|
route_at(page, d_path, d_query)
|
|
|
|
|
selected(other, detail)
|
|
|
|
|
page.reload()
|
|
|
|
|
route_at(page, d_path, d_query)
|
|
|
|
|
selected(other, detail)
|
|
|
|
|
expect(cost_page).to_be_visible()
|
|
|
|
|
assert layout(page, rail, panel, expected_width=230) == report["expanded"]
|
|
|
|
|
|
|
|
|
|
solo.click()
|
|
|
|
|
route_at(page, "solo", {})
|
|
|
|
|
expect(solo).to_have_attribute("aria-current", "page")
|
|
|
|
|
expect(cost_page).to_be_visible()
|
|
|
|
|
expect(panel).to_be_hidden()
|
|
|
|
|
report["direct_leaf"] = layout(page, rail)
|
|
|
|
|
|
|
|
|
|
root.click()
|
|
|
|
|
route_at(page, h_path, h_query)
|
|
|
|
|
selected(root, home)
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "true")
|
|
|
|
|
fold.press("Enter")
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "false")
|
|
|
|
|
expect(panel).to_be_hidden()
|
|
|
|
|
report["collapsed"] = layout(page, rail)
|
|
|
|
|
assert report["collapsed"]["rail"] < report["expanded"]["rail"]
|
|
|
|
|
page.set_viewport_size({"width": 1350, "height": 960})
|
|
|
|
|
settle(page.locator(".layout-default"))
|
|
|
|
|
expect(panel).to_be_hidden()
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "false")
|
|
|
|
|
assert layout(page, rail) == report["collapsed"]
|
|
|
|
|
report["collapsed_centers"] = {"logo": center(rail, logo, "brand image")}
|
|
|
|
|
for key, target in (("group", root.locator(".dual-root-icon svg")),
|
|
|
|
|
("no_icon_group", other.locator(".dual-root-icon")),
|
|
|
|
|
("leaf", solo.locator(".dual-root-icon svg"))):
|
|
|
|
|
report["collapsed_centers"][key] = center(rail, target, key)
|
|
|
|
|
expect(other.locator(".dual-root-icon")).to_have_text(OTHER[0])
|
|
|
|
|
screenshot(page, out, "collapsed")
|
|
|
|
|
other.press("Enter")
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "true")
|
|
|
|
|
route_at(page, d_path, d_query)
|
|
|
|
|
selected(other, detail)
|
|
|
|
|
assert layout(page, rail, panel, expected_width=230) == report["expanded"]
|
|
|
|
|
|
|
|
|
|
drawer = settings(page)
|
|
|
|
|
# Element Plus exposes a visually-hidden checkbox and a separate painted track.
|
|
|
|
|
logo_item = drawer.locator(".setting-item").filter(has_text="显示LOGO")
|
|
|
|
|
logo_item.locator(".el-switch__core").click()
|
|
|
|
|
expect(logo_item.get_by_role("switch")).not_to_be_checked()
|
|
|
|
@@ -222,27 +353,46 @@ def check(page, fixture, out):
|
|
|
|
|
width.fill("180")
|
|
|
|
|
width.press("Enter")
|
|
|
|
|
close_settings(page, drawer)
|
|
|
|
|
root.click()
|
|
|
|
|
selected(root, home)
|
|
|
|
|
expect(logo).to_be_hidden()
|
|
|
|
|
report["collapsed_centers"]["fallback"] = center(rail, side.locator(".admin-nav-heading svg"), "no-logo icon")
|
|
|
|
|
fold.press("Enter")
|
|
|
|
|
expect(fold).to_have_attribute("aria-expanded", "true")
|
|
|
|
|
expect(rail).to_have_class(re.compile(r"\btheme-dark\b"))
|
|
|
|
|
settle(side)
|
|
|
|
|
assert abs(rail.bounding_box()["width"] - 180) <= 1, rail.bounding_box()
|
|
|
|
|
report["dark_180px"] = expanded(rail)
|
|
|
|
|
fallback = rail.locator(".admin-nav-heading svg")
|
|
|
|
|
center(rail, fallback, "no-logo icon")
|
|
|
|
|
report["dark_180px"] = layout(page, rail, panel, expected_width=180)
|
|
|
|
|
report["dark_rgb"] = [painted_bg(rail), painted_bg(panel)]
|
|
|
|
|
assert all(max(rgb) < 145 for rgb in report["dark_rgb"]), report["dark_rgb"]
|
|
|
|
|
screenshot(page, out, "dark-180")
|
|
|
|
|
|
|
|
|
|
page.set_viewport_size({"width": 390, "height": 844})
|
|
|
|
|
expect(rail).to_be_hidden()
|
|
|
|
|
expect(panel).to_be_hidden()
|
|
|
|
|
fold.click()
|
|
|
|
|
mobile = page.locator(".el-drawer:visible .side")
|
|
|
|
|
expect(mobile).to_be_visible()
|
|
|
|
|
settle(mobile.locator("xpath=ancestor::*[contains(@class, 'el-overlay')][1]"))
|
|
|
|
|
report["mobile_drawer"] = expanded(mobile.locator(".menu"))
|
|
|
|
|
screenshot(page, out, "mobile")
|
|
|
|
|
mobile.get_by_role("link", name="自录转化统计", exact=True).click()
|
|
|
|
|
mobile.get_by_role("link", name=LEAF, exact=True).click()
|
|
|
|
|
expect(mobile).to_be_hidden()
|
|
|
|
|
route_at(page, c_path, c_query)
|
|
|
|
|
expect(cost_page).to_be_visible()
|
|
|
|
|
|
|
|
|
|
# Switch through the user's settings, not injected CSS/localStorage.
|
|
|
|
|
page.set_viewport_size({"width": 1440, "height": 960})
|
|
|
|
|
expect(rail).to_be_visible()
|
|
|
|
|
drawer = settings(page)
|
|
|
|
|
drawer.get_by_text("经典", exact=True).click()
|
|
|
|
|
close_settings(page, drawer)
|
|
|
|
|
expect(page.locator("html")).to_have_attribute("data-admin-ui", "legacy")
|
|
|
|
|
expect(rail).to_be_hidden()
|
|
|
|
|
expect(panel).to_be_hidden()
|
|
|
|
|
tree = page.locator(".app-aside .menu--classic:visible")
|
|
|
|
|
toggle(title(tree, ROOT), True)
|
|
|
|
|
toggle(title(tree, NESTED), True)
|
|
|
|
|
tree.get_by_role("link", name=HOME, exact=True).click()
|
|
|
|
|
route_at(page, h_path, h_query)
|
|
|
|
|
expect(page.locator("main .self-input-stats-page")).to_be_visible()
|
|
|
|
|
screenshot(page, out, "classic")
|
|
|
|
|
return report
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|