Expose suggested branch name in ticket responses
This commit is contained in:
@@ -65,6 +65,7 @@ class TicketApiTest extends TestCase
|
||||
->assertCreated()
|
||||
->assertJsonPath('data.ticket_key', 'CORE-1')
|
||||
->assertJsonPath('data.acceptance_criteria.1.indent', 1)
|
||||
->assertJsonPath('data.suggested_branch_name', 'core-1-api-ticket')
|
||||
->assertJsonPath('meta.message', 'CORE-1 was created.');
|
||||
|
||||
$ticket = Ticket::query()->findOrFail($createResponse->json('data.id'));
|
||||
@@ -101,7 +102,9 @@ class TicketApiTest extends TestCase
|
||||
->getJson(route('api.projects.tickets.show', [$project, $ticket]))
|
||||
->assertOk()
|
||||
->assertJsonPath('data.ticket.ticket_key', 'CORE-1')
|
||||
->assertJsonPath('data.ticket.story_points', 5);
|
||||
->assertJsonPath('data.ticket.story_points', 5)
|
||||
->assertJsonPath('data.ticket.suggested_branch_name', 'core-1-updated-api-ticket')
|
||||
->assertJsonPath('data.suggestedBranchName', 'core-1-updated-api-ticket');
|
||||
}
|
||||
|
||||
public function test_ticket_update_hides_author_for_non_admins_when_author_visibility_is_disabled(): void
|
||||
|
||||
Reference in New Issue
Block a user