fix: 适配 hash 路由登录页 (/#/login)
This commit is contained in:
@@ -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:
|
||||
"""检查侧边栏是否展开。"""
|
||||
|
||||
Reference in New Issue
Block a user