调整部分前端布局和后端增删改逻辑

This commit is contained in:
焦龙言
2026-09-26 23:11:05 +08:00
parent 977e7f996e
commit 17d991a74a
117 changed files with 311994 additions and 3192 deletions
@@ -5,6 +5,7 @@ from playwright.async_api import async_playwright
from common.base_page_test import BasePageTest
from common.config import Config
from common.login_helper import get_test_password
class UserManagementTest(BasePageTest):
@@ -44,7 +45,7 @@ class UserManagementTest(BasePageTest):
# 这里使用 get_by_placeholder 或者 filter 来定位更稳妥,或者直接 scope 到 dialog
await dialog.locator('div.el-form-item').filter(has_text='手机号码').get_by_role('textbox').fill(phone)
await dialog.locator('div.el-form-item').filter(has_text='邮箱').get_by_role('textbox').fill('test@example.com')
await dialog.locator('div.el-form-item').filter(has_text='用户密码').get_by_role('textbox').fill('123456')
await dialog.locator('div.el-form-item').filter(has_text='用户密码').get_by_role('textbox').fill(get_test_password('user'))
# 用户性别
# 定位 label 为 "用户性别" 的父级 form-item,然后找里面的 "请选择" 文本