Files
saasshop/tests/Feature/AdminJsCopyRunIdButtonShouldHaveTemporaryFeedbackLogicTest.php

23 lines
629 B
PHP

<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminJsCopyRunIdButtonShouldHaveTemporaryFeedbackLogicTest extends TestCase
{
use RefreshDatabase;
public function test_admin_js_should_include_temporary_feedback_for_copy_run_id_button(): void
{
$js = file_get_contents(public_path('js/admin.js'));
$this->assertIsString($js);
$this->assertStringContainsString('data-orig-text-run-id', $js);
$this->assertStringContainsString("'已复制'", $js);
$this->assertStringContainsString("'复制失败'", $js);
}
}