|
|
@ -18,6 +18,7 @@ class Test_Admin(): |
|
|
|
self.context.close() |
|
|
|
self.context.close() |
|
|
|
self.page.close() |
|
|
|
self.page.close() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 登录管理员账号 |
|
|
|
def test_admin_login(self): |
|
|
|
def test_admin_login(self): |
|
|
|
# 访问医馆首页 |
|
|
|
# 访问医馆首页 |
|
|
|
self.page.goto(BASE_URL) |
|
|
|
self.page.goto(BASE_URL) |
|
|
@ -44,4 +45,11 @@ class Test_Admin(): |
|
|
|
# 临时代码 |
|
|
|
# 临时代码 |
|
|
|
self.page.wait_for_timeout(2000) |
|
|
|
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) |