Align programme flow with Events: system-generated QR, no customizer.
Deploy Ladill Events / deploy (push) Successful in 31s
Deploy Ladill Events / deploy (push) Successful in 31s
Replace the QR-first create and edit experience with simple programme forms that auto-generate Ladill Link codes like events do. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ProgrammeCreateTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->withoutMiddleware(\App\Http\Middleware\EnsurePlatformSession::class);
|
||||
|
||||
Http::fake([
|
||||
config('billing.api_url').'/balance*' => Http::response(['balance_minor' => 50000]),
|
||||
]);
|
||||
}
|
||||
|
||||
public function test_programme_create_page_has_no_qr_customizer(): void
|
||||
{
|
||||
$user = User::create([
|
||||
'public_id' => 'usr_prog_create',
|
||||
'name' => 'Host',
|
||||
'email' => 'host-prog@example.com',
|
||||
]);
|
||||
|
||||
$this->actingAs($user)
|
||||
->get(route('programmes.create'))
|
||||
->assertOk()
|
||||
->assertSee('New programme')
|
||||
->assertSee('Create programme')
|
||||
->assertDontSee('qrCustomizer')
|
||||
->assertDontSee('customization-fields')
|
||||
->assertDontSee('Design your QR');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user