From cb158d5c99c3d2f6c6886467f1489cc7ddadb0be Mon Sep 17 00:00:00 2001 From: yueyang <2495544247@qq.com> Date: Fri, 23 Oct 2026 18:11:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E4=B8=9A=E7=BB=A9?= =?UTF-8?q?=E6=98=8E=E7=BB=86=E8=BF=9D=E7=BA=A6=E8=B5=94=E4=BB=98=E5=88=97?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Feature/Settings/NavigationTest.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index b8217968..20068c09 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -83,7 +83,7 @@ class NavigationTest extends FeatureTestCase public function testPerformanceDetailsPageIsAvailable(): void { - $this->loginAs() + $response = $this->loginAs() ->get(route('business.pages.show', [ 'section' => 'financial-operations', 'page' => 'performance-details', @@ -121,6 +121,17 @@ class NavigationTest extends FeatureTestCase ->assertSee('name="match_status"', false) ->assertSee('/workspace/financial-operations/performance-details/export', false) ->assertSeeText('店铺收款匹配订单明细尚未同步,请先执行 store-receipt:order-match:sync。'); + + $html = (string) $response->getContent(); + $offsetPosition = strpos($html, 'data-column-key="offset_amount"'); + $compensationPosition = strpos($html, 'data-column-key="default_compensation_amount"'); + $refundPosition = strpos($html, 'data-column-key="refund_amount"'); + + $this->assertNotFalse($offsetPosition); + $this->assertNotFalse($compensationPosition); + $this->assertNotFalse($refundPosition); + $this->assertLessThan($compensationPosition, $offsetPosition); + $this->assertLessThan($refundPosition, $compensationPosition); } public function testFinancialRiskControlPageIsAvailableBetweenFinancialReports(): void