fix: 调整业绩明细违约赔付列顺序
This commit is contained in:
parent
5dbf4ecfa6
commit
cb158d5c99
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user