global progress

This commit is contained in:
2024-12-12 15:57:55 +01:00
parent 8de72cf6bb
commit 1591b11308
9 changed files with 532 additions and 163 deletions

View File

@@ -23,6 +23,18 @@ test('dashboard page is displayed', function () {
]);
});
test('dashboard is accessible as new registered user', function () {
$user = User::factory()->create();
$response = actingAs($user)->get('/');
$response->assertOk()->assertSeeTextInOrder([
__('Balance'),
Number::currencyCents(0),
'Transactions history',
]);
});
test('send money to a friend', function () {
$user = User::factory()->has(Wallet::factory()->richChillGuy())->create();
$recipient = User::factory()->has(Wallet::factory())->create();