diff --git a/test_demo.py b/test_demo.py index d6743f3..c954f04 100644 --- a/test_demo.py +++ b/test_demo.py @@ -18,6 +18,7 @@ class Test_Admin(): self.context.close() self.page.close() + # 登录管理员账号 def test_admin_login(self): # 访问医馆首页 self.page.goto(BASE_URL) @@ -44,4 +45,11 @@ class Test_Admin(): # 临时代码 self.page.wait_for_timeout(2000) - + # 为上下午医生排班 + def test_doctor_schedule_setup(self): + all_menu = self.page.locator('.ivu-menu .ivu-menu-submenu-title').all() + for menu in all_menu: + if menu.inner_text() == '诊所管理': + menu.click() + assert True + self.page.wait_for_timeout(10000) \ No newline at end of file