global progress
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user