actingAs(User::factory()->superuser()->create()) ->get(route('statuslabels.edit', Statuslabel::factory()->create()->id)) ->assertOk(); } public function test_edit_page_ships_cancel_and_submit_controls() { // Regression guard: migrating from layouts/edit-form to // layouts/default + / flipped the bottom cancel + // save button from an explicit to the // implicit that renders when its parent // exposes a route. Without those two controls the user // has nothing but the top save button, which is a UX regression. $response = $this->actingAs(User::factory()->superuser()->create()) ->get(route('statuslabels.edit', Statuslabel::factory()->create()->id)) ->assertOk(); $response->assertSee('id="submit_button"', false); $response->assertSee(trans('general.cancel'), false); } }