From 728295179616e506b150eff539adf43ec5f751ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 15:48:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E5=AF=B9=E8=B4=A6/=E9=80=80=E6=AC=BE=E4=B8=8D=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=8C=89=E9=92=AE=20data-role=20=E6=8A=A4=E6=A0=8F?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...onsistentButtonsShouldHaveDataRoleTest.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/Feature/AdminDashboardBillingWorkbenchReconcileMismatchAndRefundInconsistentButtonsShouldHaveDataRoleTest.php diff --git a/tests/Feature/AdminDashboardBillingWorkbenchReconcileMismatchAndRefundInconsistentButtonsShouldHaveDataRoleTest.php b/tests/Feature/AdminDashboardBillingWorkbenchReconcileMismatchAndRefundInconsistentButtonsShouldHaveDataRoleTest.php new file mode 100644 index 0000000..6a75f5c --- /dev/null +++ b/tests/Feature/AdminDashboardBillingWorkbenchReconcileMismatchAndRefundInconsistentButtonsShouldHaveDataRoleTest.php @@ -0,0 +1,34 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_dashboard_billing_workbench_reconcile_mismatch_and_refund_inconsistent_buttons_should_have_data_role(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin'); + $res->assertOk(); + + $html = (string) $res->getContent(); + + $this->assertStringContainsString('data-role="dashboard-po-quicklink-reconcile-mismatch"', $html); + $this->assertStringContainsString('data-role="dashboard-po-quicklink-refund-inconsistent"', $html); + } +}