|
|
@@ -33,18 +33,15 @@ export interface OrderHeaderData {
|
|
|
|
|
|
/**
|
|
|
* 订单详情页基本信息数据
|
|
|
+ * 注意:预计人数和预计结束字段在数据库中不存在,已从接口中移除
|
|
|
*/
|
|
|
export interface OrderBasicInfoData {
|
|
|
- /** 预计人数 */
|
|
|
- expectedCount?: number;
|
|
|
/** 实际人数 */
|
|
|
actualCount?: number;
|
|
|
/** 预计开始日期(格式:YYYY-MM-DD) */
|
|
|
expectedStartDate?: string;
|
|
|
/** 实际开始日期(可选) */
|
|
|
actualStartDate?: string;
|
|
|
- /** 预计结束日期(可选) */
|
|
|
- expectedEndDate?: string;
|
|
|
/** 实际结束日期(可选) */
|
|
|
actualEndDate?: string;
|
|
|
/** 渠道(可选) */
|
|
|
@@ -1509,13 +1506,14 @@ export class EnterpriseMiniPage {
|
|
|
|
|
|
/**
|
|
|
* 验证订单详情页基本信息
|
|
|
+ * 注意:预计人数和预计结束字段在数据库中不存在,不进行验证
|
|
|
* @param expected 预期的基本信息数据
|
|
|
* @example
|
|
|
* await miniPage.expectOrderDetailBasicInfo({
|
|
|
- * expectedCount: 10,
|
|
|
* actualCount: 8,
|
|
|
* expectedStartDate: '2024-01-01',
|
|
|
* actualStartDate: '2024-01-02',
|
|
|
+ * actualEndDate: '2024-12-31',
|
|
|
* channel: '直招'
|
|
|
* });
|
|
|
*/
|
|
|
@@ -1523,16 +1521,7 @@ export class EnterpriseMiniPage {
|
|
|
// 获取页面文本内容进行验证
|
|
|
const pageContent = await this.page.textContent('body') || '';
|
|
|
|
|
|
- // 验证预计人数(可选)
|
|
|
- if (expected.expectedCount !== undefined) {
|
|
|
- const expectedCountStr = expected.expectedCount.toString();
|
|
|
- const hasExpectedCount = pageContent.includes(expectedCountStr) ||
|
|
|
- pageContent.includes(`预计${expectedCountStr}`) ||
|
|
|
- pageContent.includes(`预计人数:${expectedCountStr}`);
|
|
|
- if (!hasExpectedCount) {
|
|
|
- console.debug(`Warning: Expected count "${expected.expectedCount}" not found in basic info`);
|
|
|
- }
|
|
|
- }
|
|
|
+ // 注意:预计人数和预计结束字段在数据库中不存在,不进行验证
|
|
|
|
|
|
// 验证实际人数(可选)
|
|
|
if (expected.actualCount !== undefined) {
|
|
|
@@ -1561,13 +1550,7 @@ export class EnterpriseMiniPage {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 验证预计结束日期(可选)
|
|
|
- if (expected.expectedEndDate) {
|
|
|
- const hasExpectedEndDate = pageContent.includes(expected.expectedEndDate);
|
|
|
- if (!hasExpectedEndDate) {
|
|
|
- console.debug(`Warning: Expected end date "${expected.expectedEndDate}" not found in basic info`);
|
|
|
- }
|
|
|
- }
|
|
|
+ // 注意:预计结束字段在数据库中不存在,不进行验证
|
|
|
|
|
|
// 验证实际结束日期(可选)
|
|
|
if (expected.actualEndDate) {
|