Files
saasshop/tests/Feature/AdminDashboardRowWarnShouldHaveHelpCursorTest.php

19 lines
666 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace Tests\Feature;
use Tests\TestCase;
class AdminDashboardRowWarnShouldHaveHelpCursorTest extends TestCase
{
public function test_admin_dashboard_row_warn_should_have_help_cursor(): void
{
$css = (string) file_get_contents(public_path('css/admin-components.css'));
// 仪表盘最近订单的 row-warn 都带 tooltiptitle应通过 cursor:help 让运营感知可 hover。
// 仍只做 token/关键字护栏,不做具体数值/像素断言。
$this->assertStringContainsString('[data-page="admin.dashboard"] .row-warn{', $css);
$this->assertStringContainsString('cursor:help', $css);
}
}