|
@@ -1558,7 +1558,7 @@ export class OrderManagementPage {
|
|
|
if (await statusBadge.count() > 0) {
|
|
if (await statusBadge.count() > 0) {
|
|
|
const badgeText = await statusBadge.first().textContent();
|
|
const badgeText = await statusBadge.first().textContent();
|
|
|
if (badgeText) {
|
|
if (badgeText) {
|
|
|
- for (const [_statusValue, statusLabel] of Object.entries(ORDER_STATUS_LABELS)) {
|
|
|
|
|
|
|
+ for (const [statusValue, statusLabel] of Object.entries(ORDER_STATUS_LABELS)) {
|
|
|
if (badgeText.includes(statusLabel)) {
|
|
if (badgeText.includes(statusLabel)) {
|
|
|
return statusValue as OrderStatus;
|
|
return statusValue as OrderStatus;
|
|
|
}
|
|
}
|
|
@@ -1610,7 +1610,7 @@ export class OrderManagementPage {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
await menuButton.click();
|
|
await menuButton.click();
|
|
|
- } catch (_error) {
|
|
|
|
|
|
|
+ } catch (error) {
|
|
|
console.debug(`无法打开订单 "${orderName}" 的菜单:`, error);
|
|
console.debug(`无法打开订单 "${orderName}" 的菜单:`, error);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -1656,7 +1656,7 @@ export class OrderManagementPage {
|
|
|
|
|
|
|
|
try {
|
|
try {
|
|
|
await menuButton.click();
|
|
await menuButton.click();
|
|
|
- } catch (_error) {
|
|
|
|
|
|
|
+ } catch (error) {
|
|
|
console.debug(`无法打开订单 "${orderName}" 的菜单:`, error);
|
|
console.debug(`无法打开订单 "${orderName}" 的菜单:`, error);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|