feat(KAN-20): unify dialogs feedback and protect ticket drafts
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Symfony\Component\Process\Process;
|
||||
use Tests\TestCase;
|
||||
|
||||
class FormFeedbackTest extends TestCase
|
||||
{
|
||||
public function test_feedback_states_and_request_failure_classification(): void
|
||||
{
|
||||
$process = new Process(['node', 'tests/Fixtures/form-feedback.mjs'], base_path());
|
||||
$process->setTimeout(60);
|
||||
$process->run();
|
||||
|
||||
$this->assertTrue($process->isSuccessful(), $process->getOutput().$process->getErrorOutput());
|
||||
$this->assertStringContainsString('Form feedback behavior checks passed.', $process->getOutput());
|
||||
}
|
||||
}
|
||||
@@ -248,6 +248,8 @@ class ProjectTicketControllerTest extends TestCase
|
||||
*/
|
||||
public function test_ticket_details_include_matching_branches_pull_requests_and_inaccessible_repository_links(): void
|
||||
{
|
||||
config()->set('inertia.ssr.enabled', false);
|
||||
|
||||
Http::preventStrayRequests();
|
||||
Http::fake([
|
||||
'https://git.example.test/api/v1/repos/core-team/kanbangit/branches*' => Http::response([
|
||||
|
||||
Reference in New Issue
Block a user