admin: 平台订单快捷筛选补齐近24小时批量同步/生效入口
This commit is contained in:
@@ -46,7 +46,11 @@
|
|||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
<a href="/admin/platform-orders?bmpa_failed_only=1" class="muted">BMPA失败</a>
|
<a href="/admin/platform-orders?bmpa_failed_only=1" class="muted">BMPA失败</a>
|
||||||
<span class="muted">|</span>
|
<span class="muted">|</span>
|
||||||
|
<a href="/admin/platform-orders?batch_synced_24h=1" class="muted">近24小时批量同步</a>
|
||||||
|
<span class="muted">|</span>
|
||||||
<a href="/admin/platform-orders?batch_mark_paid_and_activate_24h=1" class="muted">近24小时批量BMPA</a>
|
<a href="/admin/platform-orders?batch_mark_paid_and_activate_24h=1" class="muted">近24小时批量BMPA</a>
|
||||||
|
<span class="muted">|</span>
|
||||||
|
<a href="/admin/platform-orders?batch_mark_activated_24h=1" class="muted">近24小时批量生效</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderQuickFilterBatchActivated24hLinkTest 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_platform_orders_page_has_quick_filter_for_batch_activated_24h(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$this->get('/admin/platform-orders')
|
||||||
|
->assertOk()
|
||||||
|
->assertSee('/admin/platform-orders?batch_mark_activated_24h=1', false)
|
||||||
|
->assertSee('近24小时批量生效', false);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderQuickFilterBatchSynced24hLinkTest 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_platform_orders_page_has_quick_filter_for_batch_synced_24h(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$this->get('/admin/platform-orders')
|
||||||
|
->assertOk()
|
||||||
|
->assertSee('/admin/platform-orders?batch_synced_24h=1', false)
|
||||||
|
->assertSee('近24小时批量同步', false);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user