通过可见模板选项完成组合验收
使用组件可点击的模板名称选择字段模板,九项组合验收在同一轮全部通过。
| | |
| | | await dialog.getByRole('button', { name: '添加拼接', exact: true }).click() |
| | | } |
| | | await page.getByRole('button', { name: '选择字段模板', exact: true }).click() |
| | | await page.getByRole('radio', { name: '同名身份组合模板', exact: true }).check() |
| | | await page.getByRole('dialog', { name: '选择拼接字段模板', exact: true }).getByText('同名身份组合模板', { exact: true }).click() |
| | | await page.getByRole('button', { name: '应用模板', exact: true }).click() |
| | | const shared = page.locator('.report-field-table tbody tr').filter({ has: page.locator('td').filter({ hasText: /^共享F$/ }) }).locator('input') |
| | | const manual = page.locator('.source-detail-table tbody tr').filter({ has: page.locator('td').filter({ hasText: /^F(电池字段)$/ }) }).locator('input') |