退款子页面标题调整 #71
@ -170,7 +170,7 @@ return [
|
||||
'icon' => 'assignment_return',
|
||||
'pages' => [
|
||||
['slug' => 'jingxi-refund-data', 'title' => '京喜退款数据'],
|
||||
['slug' => 'non-jingxi-refund-data', 'title' => '非京喜退款数据'],
|
||||
['slug' => 'non-jingxi-refund-data', 'title' => '售后(退货退款)'],
|
||||
],
|
||||
],
|
||||
[
|
||||
|
||||
@ -45,6 +45,7 @@
|
||||
default => '业务镜像尚未建立',
|
||||
};
|
||||
$lastSucceededAt = $refundSyncStatus['last_succeeded_at'] ?? null;
|
||||
$displayRefundError = str_replace('非京喜退款数据', '售后(退货退款)', (string) $refundError);
|
||||
@endphp
|
||||
|
||||
<div class="upstream-data-page upstream-data-page--spaced" data-refund-page="non-jingxi">
|
||||
@ -87,7 +88,7 @@
|
||||
@if ($refundError)
|
||||
<div class="upstream-data-alert" role="alert">
|
||||
<span class="material-icons-outlined" aria-hidden="true">error_outline</span>
|
||||
<span>{{ $refundError }}</span>
|
||||
<span>{{ $displayRefundError }}</span>
|
||||
</div>
|
||||
@elseif ($refundIndexPending)
|
||||
<div class="upstream-data-alert upstream-data-alert--warning" role="status">
|
||||
@ -136,7 +137,7 @@
|
||||
|
||||
<div class="upstream-data-table-panel">
|
||||
<div class="upstream-data-table-scroll">
|
||||
<table class="upstream-data-table refund-data-table refund-data-table--wide" aria-label="非京喜退款数据">
|
||||
<table class="upstream-data-table refund-data-table refund-data-table--wide" aria-label="售后(退货退款)">
|
||||
<thead>
|
||||
<tr data-header-row="labels">
|
||||
@foreach ($columns as $column)
|
||||
@ -187,7 +188,7 @@
|
||||
</div>
|
||||
<div class="upstream-data-pagination">
|
||||
<span>共 {{ number_format($rows->total()) }} 条记录</span>
|
||||
<div class="upstream-data-pagination__controls" aria-label="非京喜退款数据分页">
|
||||
<div class="upstream-data-pagination__controls" aria-label="售后(退货退款)分页">
|
||||
<a
|
||||
@class(['upstream-data-button', 'is-disabled' => $rows->onFirstPage()])
|
||||
href="{{ $rows->previousPageUrl() ?: '#' }}"
|
||||
|
||||
@ -185,8 +185,10 @@ class PagesTest extends FeatureTestCase
|
||||
|
||||
$response
|
||||
->assertOk()
|
||||
->assertSeeText('非京喜退款数据')
|
||||
->assertSee('aria-label="非京喜退款数据"', false)
|
||||
->assertSeeText('售后(退货退款)')
|
||||
->assertSee('aria-label="售后(退货退款)"', false)
|
||||
->assertSee('aria-label="售后(退货退款)分页"', false)
|
||||
->assertDontSeeText('非京喜退款数据')
|
||||
->assertSeeText('共享业务镜像尚未建立')
|
||||
->assertSeeText('数据暂时无法读取')
|
||||
->assertSee('class="upstream-data-table refund-data-table refund-data-table--wide"', false)
|
||||
@ -234,11 +236,7 @@ class PagesTest extends FeatureTestCase
|
||||
'company_id' => $this->company->id,
|
||||
'section' => 'refunds',
|
||||
'page' => 'unknown-refund-page',
|
||||
]))->assertRedirect(route('business.pages.show', [
|
||||
'company_id' => $this->company->id,
|
||||
'section' => 'refunds',
|
||||
'page' => 'non-jingxi-refund-data',
|
||||
]));
|
||||
]))->assertNotFound();
|
||||
}
|
||||
|
||||
public function testPaperMaterialPagesRenderAsSeparateTables()
|
||||
|
||||
@ -86,7 +86,7 @@ class NavigationTest extends FeatureTestCase
|
||||
array_column($refund['pages'], 'slug')
|
||||
);
|
||||
$this->assertSame(
|
||||
['京喜退款数据', '非京喜退款数据'],
|
||||
['京喜退款数据', '售后(退货退款)'],
|
||||
array_column($refund['pages'], 'title')
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user