From c146fd24cbaaa3b2a949a8607deb762450c3ed71 Mon Sep 17 00:00:00 2001 From: roger_mac Date: Wed, 21 Aug 2024 01:19:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_demo.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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