diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index b2a7899..ce0c85d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -335,8 +335,8 @@ 待生效 可同步订阅 同步失败 - BMPA失败 - BMPA成功 + BMPA失败 + BMPA成功 续费缺订阅 diff --git a/tests/Feature/AdminPlatformOrderIndexQuickFiltersBmpaFailedAndSuccessShouldHaveDataRoleTest.php b/tests/Feature/AdminPlatformOrderIndexQuickFiltersBmpaFailedAndSuccessShouldHaveDataRoleTest.php new file mode 100644 index 0000000..a2d2cdf --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexQuickFiltersBmpaFailedAndSuccessShouldHaveDataRoleTest.php @@ -0,0 +1,37 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_index_quick_filters_bmpa_failed_and_success_should_have_data_role(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + + $this->assertStringContainsString('data-role="po-quickfilter-bmpa-failed"', $html); + $this->assertStringContainsString('data-role="po-quickfilter-bmpa-success"', $html); + + $this->assertStringContainsString('bmpa_failed_only=1', $html); + $this->assertStringContainsString('bmpa_success_only=1', $html); + } +}