补充已付无回执摘要卡直达补回执入口

This commit is contained in:
萝卜
2026-03-19 16:07:05 +08:00
parent 57526577b3
commit f4f4be3268
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderReceiptSummaryCardShouldHaveGoAddPaymentReceiptLinkTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_paid_no_receipt_summary_card_should_have_go_add_payment_receipt_link(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-summary-link-go-add-payment-receipt"', $html);
$this->assertStringContainsString('href="#add-payment-receipt"', $html);
$this->assertStringContainsString('去补回执', $html);
}
}