новый дизайн
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Services\AzerothCoreAccountService;
|
||||
use App\Services\BalanceService;
|
||||
use App\Services\GameClientDownloadService;
|
||||
use Illuminate\Support\Collection;
|
||||
use Inertia\Testing\AssertableInertia as Assert;
|
||||
use Mockery\MockInterface;
|
||||
use Tests\TestCase;
|
||||
|
||||
@@ -48,9 +49,15 @@ class CabinetFeatureTest extends TestCase
|
||||
$response = $this->actingAs($user)->get(route('cabinet.index'));
|
||||
|
||||
$response->assertOk();
|
||||
$response->assertSee('Arthion');
|
||||
$response->assertSee('1 250,00');
|
||||
$response->assertSee('Скачать лаунчер');
|
||||
$response->assertInertia(fn (Assert $page) => $page
|
||||
->component('Cabinet/Index', false)
|
||||
->where('account.username', 'PLAYERONE')
|
||||
->where('wallet.formatted_amount', '1 250,00')
|
||||
->where('characters.0.name', 'Arthion')
|
||||
->has('characters', 1)
|
||||
->where('urls.client', route('cabinet.client'))
|
||||
->etc()
|
||||
);
|
||||
}
|
||||
|
||||
public function test_authenticated_user_can_change_password(): void
|
||||
|
||||
Reference in New Issue
Block a user