Add local-only test login and Finnish pagination strings
- /dev/login signs in a test user and returns to the requested page. It is registered only when APP_ENV=local and is named "login", so the auth middleware redirects there. It stands in for the real login, which arrives in phase 1. - Translate the Flux pagination summary and previous/next button labels into Finnish, so screen readers do not read English on Finnish pages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
it('does not offer the local test login outside the local environment', function () {
|
||||
expect(app()->environment())->not->toBe('local')
|
||||
->and(Route::has('login'))->toBeFalse();
|
||||
|
||||
$this->get('/dev/login')->assertNotFound();
|
||||
});
|
||||
Reference in New Issue
Block a user