Commit e6617b87 authored by liguangyu06's avatar liguangyu06
Browse files

报表 iframe 加载失败时重试,并将超时提到 120 秒,避免 smoke 被慢页误杀。

parent 47d4aecf
...@@ -131,6 +131,7 @@ describeWithReuseOpen( ...@@ -131,6 +131,7 @@ describeWithReuseOpen(
); );
test.describe("供应商对账查询 · 导出", () => { test.describe("供应商对账查询 · 导出", () => {
test.describe.configure({ timeout: 120_000 });
test("STAT-RSU-012 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({ test("STAT-RSU-012 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
reconSupplyPage, reconSupplyPage,
}) => { }) => {
......
...@@ -174,6 +174,7 @@ describeWithReuseOpen( ...@@ -174,6 +174,7 @@ describeWithReuseOpen(
); );
test.describe("条码追溯 · 导出", () => { test.describe("条码追溯 · 导出", () => {
test.describe.configure({ timeout: 120_000 });
test("STAT-TBC-015 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({ test("STAT-TBC-015 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
traceBarcodePage, traceBarcodePage,
}) => { }) => {
......
...@@ -159,6 +159,7 @@ describeWithReuseOpen( ...@@ -159,6 +159,7 @@ describeWithReuseOpen(
); );
test.describe("科室请领单追溯 · 导出", () => { test.describe("科室请领单追溯 · 导出", () => {
test.describe.configure({ timeout: 120_000 });
test("STAT-TDB-022 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({ test("STAT-TDB-022 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
traceDeptBuyPage, traceDeptBuyPage,
}) => { }) => {
......
...@@ -171,6 +171,7 @@ describeWithReuseOpen( ...@@ -171,6 +171,7 @@ describeWithReuseOpen(
); );
test.describe("直配请领单追溯 · 导出", () => { test.describe("直配请领单追溯 · 导出", () => {
test.describe.configure({ timeout: 120_000 });
test("STAT-TBY-014 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({ test("STAT-TBY-014 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
traceDirectBuyPage, traceDirectBuyPage,
}) => { }) => {
......
...@@ -157,6 +157,7 @@ describeWithReuseOpen( ...@@ -157,6 +157,7 @@ describeWithReuseOpen(
); );
test.describe("直配请领明细查询 · 导出", () => { test.describe("直配请领明细查询 · 导出", () => {
test.describe.configure({ timeout: 120_000 });
test("STAT-TDD-013 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({ test("STAT-TDD-013 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
traceDirectDetailPage, traceDirectDetailPage,
}) => { }) => {
......
...@@ -156,6 +156,7 @@ describeWithReuseOpen( ...@@ -156,6 +156,7 @@ describeWithReuseOpen(
); );
test.describe("采购单追溯 · 导出", () => { test.describe("采购单追溯 · 导出", () => {
test.describe.configure({ timeout: 120_000 });
test("STAT-TPR-013 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({ test("STAT-TPR-013 首行样本查询后导出(无数据直接导出)", { tag: "@smoke" }, async ({
tracePurchasePage, tracePurchasePage,
}) => { }) => {
......
...@@ -161,6 +161,7 @@ describeWithReuseOpen( ...@@ -161,6 +161,7 @@ describeWithReuseOpen(
); );
test.describe('缺货报表 · 导出', () => { test.describe('缺货报表 · 导出', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WDT-025 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnDetainPage }) => { test('STAT-WDT-025 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnDetainPage }) => {
await warnDetainPage.assertExportAvailable(); await warnDetainPage.assertExportAvailable();
await warnDetainPage.open(); await warnDetainPage.open();
......
...@@ -128,6 +128,7 @@ describeWithReuseOpen( ...@@ -128,6 +128,7 @@ describeWithReuseOpen(
); );
test.describe('近期效期查询 · 条码', () => { test.describe('近期效期查询 · 条码', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WEX-017 点击首行条码打开产品详情并关闭', async ({ warnExpdtPage }) => { test('STAT-WEX-017 点击首行条码打开产品详情并关闭', async ({ warnExpdtPage }) => {
await warnExpdtPage.open(); await warnExpdtPage.open();
await warnExpdtPage.search(); await warnExpdtPage.search();
...@@ -136,6 +137,7 @@ test.describe('近期效期查询 · 条码', () => { ...@@ -136,6 +137,7 @@ test.describe('近期效期查询 · 条码', () => {
}); });
test.describe('近期效期查询 · 条码明细导出', () => { test.describe('近期效期查询 · 条码明细导出', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WEX-012 导出条码明细', async ({ warnExpdtPage }) => { test('STAT-WEX-012 导出条码明细', async ({ warnExpdtPage }) => {
await warnExpdtPage.open(); await warnExpdtPage.open();
await warnExpdtPage.search(); await warnExpdtPage.search();
...@@ -165,6 +167,7 @@ describeWithReuseOpen( ...@@ -165,6 +167,7 @@ describeWithReuseOpen(
); );
test.describe('近期效期查询 · 导出', () => { test.describe('近期效期查询 · 导出', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WEX-016 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnExpdtPage }) => { test('STAT-WEX-016 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnExpdtPage }) => {
await warnExpdtPage.assertExportAvailable(); await warnExpdtPage.assertExportAvailable();
await warnExpdtPage.open(); await warnExpdtPage.open();
......
...@@ -20,6 +20,7 @@ describeWithReuseOpen( ...@@ -20,6 +20,7 @@ describeWithReuseOpen(
({ getReport }) => { ({ getReport }) => {
test('STAT-WLS-001 快捷区重置恢复默认', { tag: '@smoke' }, async () => { test('STAT-WLS-001 快捷区重置恢复默认', { tag: '@smoke' }, async () => {
const warnLowPage = getReport(); const warnLowPage = getReport();
test.setTimeout(120_000);
const sample = await warnLowPage.searchAndExtractSample(); const sample = await warnLowPage.searchAndExtractSample();
await warnLowPage.applyQuickFields(sample, warnLowComboQuickFields); await warnLowPage.applyQuickFields(sample, warnLowComboQuickFields);
await warnLowPage.resetQuickFilter(); await warnLowPage.resetQuickFilter();
...@@ -96,6 +97,7 @@ describeWithReuseOpen( ...@@ -96,6 +97,7 @@ describeWithReuseOpen(
); );
test.describe('低储预警 · 导出', () => { test.describe('低储预警 · 导出', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WLS-007 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnLowPage }) => { test('STAT-WLS-007 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnLowPage }) => {
await warnLowPage.assertExportAvailable(); await warnLowPage.assertExportAvailable();
await warnLowPage.open(); await warnLowPage.open();
......
...@@ -129,6 +129,7 @@ describeWithReuseOpen( ...@@ -129,6 +129,7 @@ describeWithReuseOpen(
); );
test.describe('滞留预警 · 条码', () => { test.describe('滞留预警 · 条码', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WST-017 点击首行条码打开产品详情并关闭', async ({ warnStrandPage }) => { test('STAT-WST-017 点击首行条码打开产品详情并关闭', async ({ warnStrandPage }) => {
await warnStrandPage.open(); await warnStrandPage.open();
await warnStrandPage.search(); await warnStrandPage.search();
...@@ -137,6 +138,7 @@ test.describe('滞留预警 · 条码', () => { ...@@ -137,6 +138,7 @@ test.describe('滞留预警 · 条码', () => {
}); });
test.describe('滞留预警 · 条码明细导出', () => { test.describe('滞留预警 · 条码明细导出', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WST-012 导出条码明细', async ({ warnStrandPage }) => { test('STAT-WST-012 导出条码明细', async ({ warnStrandPage }) => {
await warnStrandPage.open(); await warnStrandPage.open();
await warnStrandPage.search(); await warnStrandPage.search();
...@@ -166,6 +168,7 @@ describeWithReuseOpen( ...@@ -166,6 +168,7 @@ describeWithReuseOpen(
); );
test.describe('滞留预警 · 导出', () => { test.describe('滞留预警 · 导出', () => {
test.describe.configure({ timeout: 120_000 });
test('STAT-WST-016 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnStrandPage }) => { test('STAT-WST-016 首行样本查询后导出(无数据直接导出)', { tag: '@smoke' }, async ({ warnStrandPage }) => {
await warnStrandPage.assertExportAvailable(); await warnStrandPage.assertExportAvailable();
await warnStrandPage.open(); await warnStrandPage.open();
......
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