fix: 适配 hash 路由登录页 (/#/login)

This commit is contained in:
xst
2026-07-15 10:55:08 +08:00
parent 7c5a4c5de7
commit 49eb9bcd2b
5 changed files with 34 additions and 26 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class NavBar(BasePage):
def logout(self) -> None:
"""退出登录。"""
self.click_when_ready(self.logout_btn)
expect(self.page).to_have_url("**/login**", timeout=10_000)
expect(self.page).to_have_url("#/login", timeout=10_000)
def is_expanded(self) -> bool:
"""检查侧边栏是否展开。"""