2025-12-29 23:36:15 +01:00
|
|
|
<?php
|
|
|
|
|
|
2026-08-19 02:09:42 +02:00
|
|
|
it('creates a dish successfully', function () {
|
|
|
|
|
$dishName = 'Test Dish '.uniqid();
|
|
|
|
|
|
|
|
|
|
loginAndGoToDishes()
|
|
|
|
|
->click('button[wire\:click="create"]')
|
|
|
|
|
->type('input[wire\:model="name"]', $dishName)
|
|
|
|
|
->press('Create Dish')
|
|
|
|
|
->assertSee($dishName)
|
|
|
|
|
->assertSee('Dish created successfully');
|
|
|
|
|
});
|