diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index e7d2383..8492a25 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1086,7 +1086,7 @@ @endif @if((($filters['receipt_status'] ?? '') === 'none') && $hasSyncableOnlyFilter) -
+
已付无回执提示
当前集合为「已付无回执」且已勾选「只看可同步」。为保证收费闭环可治理,建议先补齐支付回执留痕,再执行批量同步订阅。 diff --git a/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldHaveDataRoleTest.php b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldHaveDataRoleTest.php new file mode 100644 index 0000000..0de87cd --- /dev/null +++ b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldHaveDataRoleTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tools_paid_no_receipt_hint_should_have_data_role(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?syncable_only=1&receipt_status=none'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-paid-no-receipt-hint"', $html); + $this->assertStringContainsString('已付无回执提示', $html); + } +}