Commit 47d4aecf authored by liguangyu06's avatar liguangyu06
Browse files

Expand weekday smoke to every report module with @smoke tags.

Center, consume, trace, recon, analytics, ops, and reagent pages were implemented but never entered the smoke suite, so Jenkins only covered part of the product.
parent 87a14351
......@@ -26,7 +26,7 @@ Chromium 缓存在项目内 `.playwright-browsers/`(已 gitignore),与 `@p
| 套件 | 命令 | 用途 |
|------|------|------|
| `smoke` | `npm run test:ci:smoke` | 登录/首页 + 成本/开票/科室出入库 + 预警/政策/异常已打 `@smoke` 的用例 |
| `smoke` | `npm run test:ci:smoke` | 全部报表模块中已打 `@smoke` 的用例(每页重置 / 列表或查询 / 列设置 / 导出) |
| `nightly` | `npm run test:ci:nightly` | 主 spec 回归,排除 `@full` 与调试 `*.stat-*.spec.ts` |
| `full` | `npm run test:ci:full` | 含全列排序,建议周末 |
| 模块 | `SUITE=center npm run test:ci` | `center` / `dept` / `warn` / `recon` 等 |
......
......@@ -109,15 +109,22 @@ export const SUITES = {
retries: 0,
},
smoke: {
description: '冒烟:登录/首页 + 成本/开票/科室出入库 + 预警/政策/异常已打 @smoke 的用例',
description: '冒烟:全部报表模块中已打 @smoke 的用例(登录/首页成本开票科室、中心库、消耗、追溯、对账、预警政策异常、统计分析、运维、试剂)',
files: [
...PAGE_GROUPS.auth,
...PAGE_GROUPS.cost,
...PAGE_GROUPS.invoice,
...PAGE_GROUPS.dept,
...PAGE_GROUPS.center,
...PAGE_GROUPS.consume,
...PAGE_GROUPS.trace,
...PAGE_GROUPS.recon,
...PAGE_GROUPS.warn,
...PAGE_GROUPS.pol,
...PAGE_GROUPS.exc,
...PAGE_GROUPS.ana,
...PAGE_GROUPS.ops,
...PAGE_GROUPS.reag,
],
grep: '@smoke',
workers: 3,
......
......@@ -8,7 +8,7 @@
| 任务 | 套件 | 建议 cron | 说明 |
|------|------|-----------|------|
| `spd-ui-smoke` | `smoke` | `H 8-18 * * 1-5` | 工作时段冒烟:登录/首页 + 成本/开票/科室出入库 + 预警/政策/异常 `@smoke` |
| `spd-ui-smoke` | `smoke` | `H 8-18 * * 1-5` | 工作时段冒烟:全部报表模块已打 `@smoke` 的用例 |
| `spd-ui-nightly` | `nightly` | `H 2 * * *` | 夜间主 spec 回归,不含 `@full`、不含调试 `*.stat-*.spec.ts` |
| `spd-ui-full` | `full` | `H 3 * * 0` | 周末含全列排序,最慢 |
......
......@@ -16,7 +16,7 @@ test.describe('调价统计报表 · 快捷筛选查询', () => {
test.beforeEach(async ({ anaChgPage }) => {
await anaChgPage.open();
});
test('STAT-ACH-001 快捷区重置恢复默认', async ({ anaChgPage }) => {
test('STAT-ACH-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ anaChgPage }) => {
const sample = await anaChgPage.searchAndExtractSample();
await anaChgPage.applyQuickFields(sample, anaChgComboQuickFields);
await anaChgPage.resetQuickFilter();
......@@ -67,7 +67,7 @@ test.describe('调价统计报表 · 主表列表与汇总', () => {
await anaChgPage.open();
await anaChgPage.search();
});
test('STAT-ACH-006 查询后核心列展示', async ({ anaChgPage }) => {
test('STAT-ACH-006 查询后核心列展示', { tag: '@smoke' }, async ({ anaChgPage }) => {
await anaChgPage.search();
await anaChgPage.expectTableHeaders();
});
......@@ -114,7 +114,7 @@ test.describe('调价统计报表 · 分页', () => {
});
test.describe('调价统计报表 · 导出', () => {
test('STAT-ACH-023 首行样本查询后导出(无数据直接导出)', async ({ anaChgPage }) => {
test('STAT-ACH-023 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ anaChgPage }) => {
await anaChgPage.assertExportAvailable();
await anaChgPage.open();
await anaChgPage.exportWithFirstRowSampleQuery(anaChgComboFullQuickFields);
......
......@@ -17,12 +17,12 @@ test.describe('财务数据分析-科室成本 · 快捷筛选查询', () => {
test.beforeEach(async ({ anaDeptPage }) => {
await anaDeptPage.open();
});
test('STAT-ADD-001 快捷区重置恢复默认', async ({ anaDeptPage }) => {
test('STAT-ADD-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ anaDeptPage }) => {
const sample = await anaDeptPage.searchAndExtractSample();
await anaDeptPage.applyQuickFields(sample, anaDeptComboQuickFields);
await anaDeptPage.resetQuickFilter();
});
test('STAT-ADD-002 时间、院区名称、科室组合查询', async ({ anaDeptPage }) => {
test('STAT-ADD-002 时间、院区名称、科室组合查询', { tag: '@smoke' }, async ({ anaDeptPage }) => {
await anaDeptPage.searchWithQuickComboChart(anaDeptComboQuickFields);
});
});
......@@ -54,7 +54,7 @@ test.describe('财务数据分析-科室成本 · 财务数据分析图表', ()
});
test.describe('财务数据分析-科室成本 · 导出', () => {
test('STAT-ADD-006 首行样本查询后导出(无数据直接导出)', async ({ anaDeptPage }) => {
test('STAT-ADD-006 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ anaDeptPage }) => {
await anaDeptPage.assertExportAvailable();
await anaDeptPage.open();
await anaDeptPage.exportWithFirstRowSampleQuery(anaDeptComboFullQuickFields);
......
......@@ -17,12 +17,12 @@ test.describe('财务数据分析-供应商入账 · 快捷筛选查询', () =>
test.beforeEach(async ({ anaProvPage }) => {
await anaProvPage.open();
});
test('STAT-APV-001 快捷区重置恢复默认', async ({ anaProvPage }) => {
test('STAT-APV-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ anaProvPage }) => {
const sample = await anaProvPage.searchAndExtractSample();
await anaProvPage.applyQuickFields(sample, anaProvComboQuickFields);
await anaProvPage.resetQuickFilter();
});
test('STAT-APV-002 时间、院区名称、进院供应商组合查询', async ({ anaProvPage }) => {
test('STAT-APV-002 时间、院区名称、进院供应商组合查询', { tag: '@smoke' }, async ({ anaProvPage }) => {
await anaProvPage.searchWithQuickComboChart(anaProvComboQuickFields);
});
});
......@@ -54,7 +54,7 @@ test.describe('财务数据分析-供应商入账 · 财务数据分析图表',
});
test.describe('财务数据分析-供应商入账 · 导出', () => {
test('STAT-APV-006 首行样本查询后导出(无数据直接导出)', async ({ anaProvPage }) => {
test('STAT-APV-006 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ anaProvPage }) => {
await anaProvPage.assertExportAvailable();
await anaProvPage.open();
await anaProvPage.exportWithFirstRowSampleQuery(anaProvComboFullQuickFields);
......
......@@ -11,7 +11,7 @@ test.describe('入库汇总查询 · 快捷筛选', () => {
await centerReportEntryPage.open();
});
test('STAT-IES-001 快捷区重置恢复默认', async ({ centerReportEntryPage }) => {
test('STAT-IES-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportEntryPage }) => {
const sample = await centerReportEntryPage.searchAndExtractSample();
const product = sample.productName ?? centerReportEntryPage.getSampleValue(sample, 'productCode');
await centerReportEntryPage.fillProductName(product);
......@@ -48,7 +48,7 @@ test.describe('入库汇总查询 · 高级筛选', () => {
await centerReportEntryPage.expectDrawerBatchNoEmpty();
});
test('STAT-IES-004 全量查询条件组合查询', async ({ centerReportEntryPage }) => {
test('STAT-IES-004 全量查询条件组合查询', { tag: '@smoke' }, async ({ centerReportEntryPage }) => {
const sample = await centerReportEntryPage.searchWithAllConditions();
await centerReportEntryPage.expectCombinedFilterResult(sample);
});
......@@ -132,7 +132,7 @@ test.describe('入库汇总查询 · 列设置', () => {
await centerReportEntryPage.search();
});
test('STAT-IES-021 打开列设置面板', async ({ centerReportEntryPage }) => {
test('STAT-IES-021 打开列设置面板', { tag: '@smoke' }, async ({ centerReportEntryPage }) => {
await centerReportEntryPage.openColumnSettings();
await centerReportEntryPage.expectColumnSettingsPanel();
await centerReportEntryPage.closeColumnSettingsPanel();
......@@ -176,7 +176,7 @@ test.describe('入库汇总查询 · 分页', () => {
});
test.describe('入库汇总查询 · 导出', () => {
test('STAT-IES-026 按当前查询条件导出文件', async ({ centerReportEntryPage }) => {
test('STAT-IES-026 按当前查询条件导出文件', { tag: '@smoke' }, async ({ centerReportEntryPage }) => {
await centerReportEntryPage.open();
await centerReportEntryPage.checkAllDimensions();
await centerReportEntryPage.search();
......
......@@ -15,7 +15,7 @@ test.describe('中心库进销存(后勤) · 快捷筛选', () => {
await centerReportLmmPsiPage.open();
});
test('STAT-LMP-001 快捷区重置恢复默认', async ({ centerReportLmmPsiPage }) => {
test('STAT-LMP-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportLmmPsiPage }) => {
const sample = await centerReportLmmPsiPage.searchAndExtractSample();
await centerReportLmmPsiPage.applyQuickFields(sample, centerReportLmmPsiComboQuickFields);
await centerReportLmmPsiPage.applyQuickFields(sample, centerReportLmmPsiComboExpandedFields);
......@@ -51,7 +51,7 @@ test.describe('中心库进销存(后勤) · 主表列表', () => {
await centerReportLmmPsiPage.expectEmptyList();
});
test('STAT-LMP-006 查询后核心列展示与横向滚动列对齐', async ({ centerReportLmmPsiPage }) => {
test('STAT-LMP-006 查询后核心列展示与横向滚动列对齐', { tag: '@smoke' }, async ({ centerReportLmmPsiPage }) => {
await centerReportLmmPsiPage.search();
await centerReportLmmPsiPage.expectTableHeaders();
await centerReportLmmPsiPage.expectTableHorizontalScrollAndLayout();
......@@ -66,7 +66,7 @@ test.describe('中心库进销存(后勤) · 列设置', () => {
await centerReportLmmPsiPage.search();
});
test('STAT-LMP-007 打开列设置面板', async ({ centerReportLmmPsiPage }) => {
test('STAT-LMP-007 打开列设置面板', { tag: '@smoke' }, async ({ centerReportLmmPsiPage }) => {
await centerReportLmmPsiPage.openColumnSettings();
await centerReportLmmPsiPage.expectColumnSettingsPanel();
await centerReportLmmPsiPage.closeColumnSettingsPanel();
......@@ -116,7 +116,7 @@ test.describe('中心库进销存(后勤) · 分页', () => {
});
test.describe('中心库进销存(后勤) · 导出', () => {
test('STAT-LMP-012 按当前条件导出文件', async ({ centerReportLmmPsiPage }) => {
test('STAT-LMP-012 按当前条件导出文件', { tag: '@smoke' }, async ({ centerReportLmmPsiPage }) => {
await centerReportLmmPsiPage.open();
await centerReportLmmPsiPage.search();
await centerReportLmmPsiPage.exportReport();
......
......@@ -15,7 +15,7 @@ test.describe('出入库明细查询(后勤)', () => {
await centerReportLmmSheetPage.open();
});
test('STAT-LMS-001 快捷区重置恢复默认', async ({ centerReportLmmSheetPage }) => {
test('STAT-LMS-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportLmmSheetPage }) => {
const sample = await centerReportLmmSheetPage.searchAndExtractSample();
const keyword = sample.materialName ?? centerReportLmmSheetPage.getSampleValue(sample, 'materialCode');
await centerReportLmmSheetPage.fillProductName(keyword);
......@@ -52,7 +52,7 @@ test.describe('出入库明细查询(后勤)', () => {
await centerReportLmmSheetPage.expectCombinedFilterResult(sample, centerReportLmmSheetComboAssertKeys);
});
test('STAT-LMS-007 查询后核心列展示', async ({ centerReportLmmSheetPage }) => {
test('STAT-LMS-007 查询后核心列展示', { tag: '@smoke' }, async ({ centerReportLmmSheetPage }) => {
await centerReportLmmSheetPage.search();
await centerReportLmmSheetPage.expectTableHeaders();
await centerReportLmmSheetPage.expectTableHorizontalScrollAndLayout();
......@@ -81,7 +81,7 @@ test.describe('出入库明细查询(后勤)', () => {
);
});
test('STAT-LMS-012 按当前条件导出文件', async ({ centerReportLmmSheetPage }) => {
test('STAT-LMS-012 按当前条件导出文件', { tag: '@smoke' }, async ({ centerReportLmmSheetPage }) => {
await centerReportLmmSheetPage.search();
await centerReportLmmSheetPage.exportReport();
});
......@@ -95,7 +95,7 @@ test.describe('出入库明细查询(后勤) · 列设置', () => {
await centerReportLmmSheetPage.search();
});
test('STAT-LMS-013 打开列设置面板', async ({ centerReportLmmSheetPage }) => {
test('STAT-LMS-013 打开列设置面板', { tag: '@smoke' }, async ({ centerReportLmmSheetPage }) => {
await centerReportLmmSheetPage.openColumnSettings();
await centerReportLmmSheetPage.expectColumnSettingsPanel();
await centerReportLmmSheetPage.closeColumnSettingsPanel();
......
......@@ -16,7 +16,7 @@ test.describe('净入库汇总查询(多维度)', () => {
await centerReportNetEntryPage.open();
});
test('STAT-NES-001 快捷区重置恢复默认', async ({ centerReportNetEntryPage }) => {
test('STAT-NES-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportNetEntryPage }) => {
const sample = await centerReportNetEntryPage.searchAndExtractSample();
if (sample.goodsCode) await centerReportNetEntryPage.fillGoodsCode(sample.goodsCode);
if (sample.goodsName) await centerReportNetEntryPage.fillProductName(sample.goodsName);
......@@ -61,7 +61,7 @@ test.describe('净入库汇总查询(多维度)', () => {
await centerReportNetEntryPage.expectCombinedFilterResult(sample);
});
test('STAT-NES-008 查询后核心列展示与横向滚动列对齐', async ({ centerReportNetEntryPage }) => {
test('STAT-NES-008 查询后核心列展示与横向滚动列对齐', { tag: '@smoke' }, async ({ centerReportNetEntryPage }) => {
await centerReportNetEntryPage.search();
await centerReportNetEntryPage.expectTableHeaders();
await centerReportNetEntryPage.expectTableHorizontalScrollAndLayout();
......@@ -86,7 +86,7 @@ test.describe('净入库汇总查询(多维度)', () => {
);
});
test('STAT-NES-026 按当前条件导出文件', async ({ centerReportNetEntryPage }) => {
test('STAT-NES-026 按当前条件导出文件', { tag: '@smoke' }, async ({ centerReportNetEntryPage }) => {
await centerReportNetEntryPage.checkAllDimensions();
await centerReportNetEntryPage.search();
await centerReportNetEntryPage.exportReport();
......@@ -126,7 +126,7 @@ test.describe('净入库汇总查询(多维度) · 列设置', () => {
await centerReportNetEntryPage.search();
});
test('STAT-NES-028 打开列设置面板', async ({ centerReportNetEntryPage }) => {
test('STAT-NES-028 打开列设置面板', { tag: '@smoke' }, async ({ centerReportNetEntryPage }) => {
await centerReportNetEntryPage.openColumnSettings();
await centerReportNetEntryPage.expectColumnSettingsPanel();
await centerReportNetEntryPage.closeColumnSettingsPanel();
......
......@@ -16,7 +16,7 @@ test.describe('净出库汇总查询(多维度)', () => {
await centerReportNetOutPage.open();
});
test('STAT-NOS-001 快捷区重置恢复默认', async ({ centerReportNetOutPage }) => {
test('STAT-NOS-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportNetOutPage }) => {
const sample = await centerReportNetOutPage.searchAndExtractSample();
if (sample.goodsCode) await centerReportNetOutPage.fillGoodsCode(sample.goodsCode);
if (sample.goodsName) await centerReportNetOutPage.fillProductName(sample.goodsName);
......@@ -73,7 +73,7 @@ test.describe('净出库汇总查询(多维度)', () => {
await centerReportNetOutPage.expectCombinedFilterResult(sample);
});
test('STAT-NOS-008 查询后核心列展示与横向滚动列对齐', async ({ centerReportNetOutPage }) => {
test('STAT-NOS-008 查询后核心列展示与横向滚动列对齐', { tag: '@smoke' }, async ({ centerReportNetOutPage }) => {
await centerReportNetOutPage.search();
await centerReportNetOutPage.expectTableHeaders();
await centerReportNetOutPage.expectTableHorizontalScrollAndLayout();
......@@ -98,7 +98,7 @@ test.describe('净出库汇总查询(多维度)', () => {
);
});
test('STAT-NOS-026 按当前条件导出文件', async ({ centerReportNetOutPage }) => {
test('STAT-NOS-026 按当前条件导出文件', { tag: '@smoke' }, async ({ centerReportNetOutPage }) => {
await centerReportNetOutPage.checkAllDimensions();
await centerReportNetOutPage.search();
await centerReportNetOutPage.exportReport();
......@@ -126,7 +126,7 @@ test.describe('净出库汇总查询(多维度) · 列设置', () => {
await centerReportNetOutPage.search();
});
test('STAT-NOS-028 打开列设置面板', async ({ centerReportNetOutPage }) => {
test('STAT-NOS-028 打开列设置面板', { tag: '@smoke' }, async ({ centerReportNetOutPage }) => {
await centerReportNetOutPage.openColumnSettings();
await centerReportNetOutPage.expectColumnSettingsPanel();
await centerReportNetOutPage.closeColumnSettingsPanel();
......
......@@ -11,7 +11,7 @@ test.describe('出库汇总查询 · 快捷筛选', () => {
await centerReportOutPage.open();
});
test('STAT-OOS-001 快捷区重置恢复默认', async ({ centerReportOutPage }) => {
test('STAT-OOS-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportOutPage }) => {
const sample = await centerReportOutPage.searchAndExtractSample();
const product = sample.productName ?? centerReportOutPage.getSampleValue(sample, 'productCode');
await centerReportOutPage.fillProductName(product);
......@@ -48,7 +48,7 @@ test.describe('出库汇总查询 · 高级筛选', () => {
await centerReportOutPage.expectDrawerBatchNoEmpty();
});
test('STAT-OOS-004 全量查询条件组合查询', async ({ centerReportOutPage }) => {
test('STAT-OOS-004 全量查询条件组合查询', { tag: '@smoke' }, async ({ centerReportOutPage }) => {
const sample = await centerReportOutPage.searchWithAllConditions();
await centerReportOutPage.expectCombinedFilterResult(sample);
});
......@@ -131,7 +131,7 @@ test.describe('出库汇总查询 · 列设置', () => {
await centerReportOutPage.search();
});
test('STAT-OOS-021 打开列设置面板', async ({ centerReportOutPage }) => {
test('STAT-OOS-021 打开列设置面板', { tag: '@smoke' }, async ({ centerReportOutPage }) => {
await centerReportOutPage.openColumnSettings();
await centerReportOutPage.expectColumnSettingsPanel();
await centerReportOutPage.closeColumnSettingsPanel();
......@@ -178,7 +178,7 @@ test.describe('出库汇总查询 · 分页', () => {
});
test.describe('出库汇总查询 · 导出', () => {
test('STAT-OOS-026 按当前查询条件导出文件', async ({ centerReportOutPage }) => {
test('STAT-OOS-026 按当前查询条件导出文件', { tag: '@smoke' }, async ({ centerReportOutPage }) => {
await centerReportOutPage.open();
await centerReportOutPage.checkAllDimensions();
await centerReportOutPage.search();
......
......@@ -15,7 +15,7 @@ test.describe('中心库产品进销存 · 快捷筛选', () => {
await centerReportPsiPage.open();
});
test('STAT-PSI-001 快捷区重置恢复默认', async ({ centerReportPsiPage }) => {
test('STAT-PSI-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportPsiPage }) => {
const sample = await centerReportPsiPage.searchAndExtractSample();
await centerReportPsiPage.applyQuickFields(sample, centerReportPsiComboQuickFields);
await centerReportPsiPage.resetQuickFilter();
......@@ -72,7 +72,7 @@ test.describe('中心库产品进销存 · 主表列表', () => {
await centerReportPsiPage.expectEmptyList();
});
test('STAT-PSI-006 查询后核心列展示与横向滚动列对齐', async ({ centerReportPsiPage }) => {
test('STAT-PSI-006 查询后核心列展示与横向滚动列对齐', { tag: '@smoke' }, async ({ centerReportPsiPage }) => {
await centerReportPsiPage.search();
await centerReportPsiPage.expectTableHeaders();
await centerReportPsiPage.expectTableHorizontalScrollAndLayout();
......@@ -87,7 +87,7 @@ test.describe('中心库产品进销存 · 列设置', () => {
await centerReportPsiPage.search();
});
test('STAT-PSI-007 打开列设置面板', async ({ centerReportPsiPage }) => {
test('STAT-PSI-007 打开列设置面板', { tag: '@smoke' }, async ({ centerReportPsiPage }) => {
await centerReportPsiPage.openColumnSettings();
await centerReportPsiPage.expectColumnSettingsPanel();
await centerReportPsiPage.closeColumnSettingsPanel();
......@@ -134,7 +134,7 @@ test.describe('中心库产品进销存 · 分页', () => {
});
test.describe('中心库产品进销存 · 导出', () => {
test('STAT-PSI-012 按当前条件导出文件', async ({ centerReportPsiPage }) => {
test('STAT-PSI-012 按当前条件导出文件', { tag: '@smoke' }, async ({ centerReportPsiPage }) => {
await centerReportPsiPage.open();
await centerReportPsiPage.search();
await centerReportPsiPage.exportReport();
......
......@@ -11,7 +11,7 @@ test.describe('出入库明细查询 · 快捷筛选', () => {
await centerReportSheetPage.open();
});
test('STAT-IOD-001 快捷区重置恢复默认', async ({ centerReportSheetPage }) => {
test('STAT-IOD-001 快捷区重置恢复默认', { tag: '@smoke' }, async ({ centerReportSheetPage }) => {
const sample = await centerReportSheetPage.searchAndExtractSample();
const product = sample.productName ?? centerReportSheetPage.getSampleValue(sample, 'productCode');
await centerReportSheetPage.fillProductName(product);
......@@ -40,7 +40,7 @@ test.describe('出入库明细查询 · 高级筛选', () => {
await centerReportSheetPage.expectDrawerBatchNoEmpty();
});
test('STAT-IOD-004 全量查询条件组合查询', async ({ centerReportSheetPage }) => {
test('STAT-IOD-004 全量查询条件组合查询', { tag: '@smoke' }, async ({ centerReportSheetPage }) => {
const sample = await centerReportSheetPage.searchWithAllConditions();
await centerReportSheetPage.expectCombinedFilterResult(sample);
});
......@@ -134,7 +134,7 @@ test.describe('出入库明细查询 · 分页', () => {
});
test.describe('出入库明细查询 · 导出', () => {
test('STAT-IOD-043 按当前查询条件导出文件', async ({ centerReportSheetPage }) => {
test('STAT-IOD-043 按当前查询条件导出文件', { tag: '@smoke' }, async ({ centerReportSheetPage }) => {
await centerReportSheetPage.open();
await centerReportSheetPage.search();
await centerReportSheetPage.exportReport();
......
......@@ -14,7 +14,7 @@ test.describe('产品周转率报表', () => {
await centerReportTurnoverPage.open();
});
test('STAT-PTR-001 重置恢复默认', async ({ centerReportTurnoverPage }) => {
test('STAT-PTR-001 重置恢复默认', { tag: '@smoke' }, async ({ centerReportTurnoverPage }) => {
const sample = await centerReportTurnoverPage.searchAndExtractSample();
const keyword = sample.productName ?? centerReportTurnoverPage.getSampleValue(sample, 'productCode');
await centerReportTurnoverPage.fillProductName(keyword);
......@@ -42,7 +42,7 @@ test.describe('产品周转率报表', () => {
await centerReportTurnoverPage.expectEmptyList();
});
test('STAT-PTR-005 查询后基础列展示', async ({ centerReportTurnoverPage }) => {
test('STAT-PTR-005 查询后基础列展示', { tag: '@smoke' }, async ({ centerReportTurnoverPage }) => {
await centerReportTurnoverPage.search();
await centerReportTurnoverPage.expectTableHeaders();
await centerReportTurnoverPage.expectTableHorizontalScrollAndLayout();
......@@ -67,7 +67,7 @@ test.describe('产品周转率报表', () => {
);
});
test('STAT-PTR-009 按当前条件导出文件', async ({ centerReportTurnoverPage }) => {
test('STAT-PTR-009 按当前条件导出文件', { tag: '@smoke' }, async ({ centerReportTurnoverPage }) => {
await centerReportTurnoverPage.search();
await centerReportTurnoverPage.exportReport();
});
......@@ -94,7 +94,7 @@ test.describe('产品周转率报表 · 列设置', () => {
await centerReportTurnoverPage.search();
});
test('STAT-PTR-017 打开列设置面板', async ({ centerReportTurnoverPage }) => {
test('STAT-PTR-017 打开列设置面板', { tag: '@smoke' }, async ({ centerReportTurnoverPage }) => {
await centerReportTurnoverPage.openColumnSettings();
await centerReportTurnoverPage.expectColumnSettingsPanel();
await centerReportTurnoverPage.closeColumnSettingsPanel();
......
......@@ -20,7 +20,7 @@ describeWithReuseOpen(
(page) => new ConsumeDeptRankPage(page),
{},
({ getReport }) => {
test("STAT-CRK-001 快捷区重置恢复默认", async () => {
test("STAT-CRK-001 快捷区重置恢复默认", { tag: "@smoke" }, async () => {
const consumeDeptRankPage = getReport();
const sample = await consumeDeptRankPage.searchAndExtractSample();
await consumeDeptRankPage.applyQuickFields(
......@@ -52,7 +52,7 @@ describeWithReuseOpen(
);
await consumeDeptRankPage.resetAdvancedDrawer();
});
test("STAT-CRK-004 全量查询条件组合查询", async () => {
test("STAT-CRK-004 全量查询条件组合查询", { tag: "@smoke" }, async () => {
const consumeDeptRankPage = getReport();
const sample = await consumeDeptRankPage.searchWithQuickAndDrawerCombo(
consumeDeptRankComboQuickFields,
......
......@@ -19,7 +19,7 @@ describeWithReuseOpen(
(page) => new ConsumeHighPage(page),
{},
({ getReport }) => {
test("STAT-CHC-001 快捷区重置恢复默认", async () => {
test("STAT-CHC-001 快捷区重置恢复默认", { tag: "@smoke" }, async () => {
const consumeHighPage = getReport();
const sample = await consumeHighPage.searchAndExtractSample();
await consumeHighPage.applyQuickFields(
......@@ -49,7 +49,7 @@ describeWithReuseOpen(
await consumeHighPage.fillBatchNo("MOCK-BATCH-001");
await consumeHighPage.resetAdvancedDrawer();
});
test("STAT-CHC-004 全量查询条件组合查询", async () => {
test("STAT-CHC-004 全量查询条件组合查询", { tag: "@smoke" }, async () => {
const consumeHighPage = getReport();
const sample = await consumeHighPage.searchWithQuickAndDrawerCombo(
consumeHighComboQuickFields,
......@@ -108,7 +108,7 @@ describeWithReuseOpen(
(page) => new ConsumeHighPage(page),
{ searchOnOpen: true, searchBeforeEach: true },
({ getReport }) => {
test("STAT-CHC-008 打开列设置面板", async () => {
test("STAT-CHC-008 打开列设置面板", { tag: "@smoke" }, async () => {
const consumeHighPage = getReport();
await consumeHighPage.openColumnSettings();
await consumeHighPage.expectColumnSettingsPanel();
......@@ -181,7 +181,7 @@ describeWithReuseOpen(
);
test.describe("高值消耗追溯 · 导出", () => {
test("STAT-CHC-031 首行样本查询后导出(无数据直接导出)", async ({
test("STAT-CHC-031 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
consumeHighPage,
}) => {
await consumeHighPage.assertExportAvailable();
......
......@@ -16,7 +16,7 @@ describeWithReuseOpen(
(page) => new ConsumeMultiChargePage(page),
{},
({ getReport }) => {
test("STAT-CMC-001 快捷区重置恢复默认", async () => {
test("STAT-CMC-001 快捷区重置恢复默认", { tag: "@smoke" }, async () => {
const consumeMultiChargePage = getReport();
const sample = await consumeMultiChargePage.searchAndExtractSample();
await consumeMultiChargePage.applyQuickFields(
......@@ -25,7 +25,7 @@ describeWithReuseOpen(
);
await consumeMultiChargePage.resetQuickFilter();
});
test("STAT-CMC-002 产品名称、规格型号、UDI、原厂码、计费情况组合查询", async () => {
test("STAT-CMC-002 产品名称、规格型号、UDI、原厂码、计费情况组合查询", { tag: "@smoke" }, async () => {
const consumeMultiChargePage = getReport();
await consumeMultiChargePage.searchWithQuickCombo(
consumeMultiChargeComboQuickFields,
......@@ -57,7 +57,7 @@ describeWithReuseOpen(
(page) => new ConsumeMultiChargePage(page),
{ searchOnOpen: true, searchBeforeEach: true },
({ getReport }) => {
test("STAT-CMC-005 打开列设置面板", async () => {
test("STAT-CMC-005 打开列设置面板", { tag: "@smoke" }, async () => {
const consumeMultiChargePage = getReport();
await consumeMultiChargePage.openColumnSettings();
await consumeMultiChargePage.expectColumnSettingsPanel();
......@@ -110,7 +110,7 @@ describeWithReuseOpen(
);
test.describe("多次计费耗材追溯 · 导出", () => {
test("STAT-CMC-010 首行样本查询后导出(无数据直接导出)", async ({
test("STAT-CMC-010 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
consumeMultiChargePage,
}) => {
await consumeMultiChargePage.assertExportAvailable();
......
......@@ -16,7 +16,7 @@ describeWithReuseOpen(
(page) => new ConsumePatientPage(page),
{},
({ getReport }) => {
test("STAT-CPT-001 快捷区重置恢复默认", async () => {
test("STAT-CPT-001 快捷区重置恢复默认", { tag: "@smoke" }, async () => {
const consumePatientPage = getReport();
const sample = await consumePatientPage.searchAndExtractSample();
await consumePatientPage.applyQuickFields(
......@@ -25,7 +25,7 @@ describeWithReuseOpen(
);
await consumePatientPage.resetQuickFilter();
});
test("STAT-CPT-002 患者姓名、住院唯一编号组合查询", async () => {
test("STAT-CPT-002 患者姓名、住院唯一编号组合查询", { tag: "@smoke" }, async () => {
const consumePatientPage = getReport();
await consumePatientPage.searchWithQuickCombo(
consumePatientComboQuickFields,
......@@ -57,7 +57,7 @@ describeWithReuseOpen(
(page) => new ConsumePatientPage(page),
{ searchOnOpen: true, searchBeforeEach: true },
({ getReport }) => {
test("STAT-CPT-005 打开列设置面板", async () => {
test("STAT-CPT-005 打开列设置面板", { tag: "@smoke" }, async () => {
const consumePatientPage = getReport();
await consumePatientPage.openColumnSettings();
await consumePatientPage.expectColumnSettingsPanel();
......
......@@ -15,7 +15,7 @@ describeWithReuseOpen(
(page) => new ConsumeTrendPage(page),
{},
({ getReport }) => {
test("STAT-CTA-001 快捷区重置恢复默认", async () => {
test("STAT-CTA-001 快捷区重置恢复默认", { tag: "@smoke" }, async () => {
const consumeTrendPage = getReport();
const sample = await consumeTrendPage.searchAndExtractSample();
await consumeTrendPage.applyQuickFields(
......@@ -45,7 +45,7 @@ describeWithReuseOpen(
(page) => new ConsumeTrendPage(page),
{ searchOnOpen: true, searchBeforeEach: true },
({ getReport }) => {
test("STAT-CTA-003 查询后趋势图渲染", async () => {
test("STAT-CTA-003 查询后趋势图渲染", { tag: "@smoke" }, async () => {
const consumeTrendPage = getReport();
await consumeTrendPage.expectChartVisible();
});
......@@ -53,7 +53,7 @@ describeWithReuseOpen(
);
test.describe("消耗趋势分析 · 导出", () => {
test("STAT-CTA-004 首行样本查询后导出(无数据直接导出)", async ({
test("STAT-CTA-004 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
consumeTrendPage,
}) => {
await consumeTrendPage.assertExportAvailable();
......@@ -69,7 +69,7 @@ describeWithReuseOpen(
(page) => new ConsumeTrendPage(page),
{ searchOnOpen: true, searchBeforeEach: true },
({ getReport }) => {
test("STAT-CTA-005 打开列设置面板", async () => {
test("STAT-CTA-005 打开列设置面板", { tag: "@smoke" }, async () => {
const consumeTrendPage = getReport();
await consumeTrendPage.openColumnSettings();
await consumeTrendPage.expectColumnSettingsPanel();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment