File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77- Add seeded auth Playwright E2E flows for logged-in routes and logout.
88- Switch Playwright E2E coverage to click-based navigation flows with member role checks.
99- Add Tasks and Reports placeholder pages with sidebar navigation coverage.
10+ - Remove the public home page and redirect ` / ` to ` /dashboard ` .
1011- Add config bootstrap, env loading, and secure session defaults.
1112- Add custom router, middleware stubs, and view renderer.
1213- Add PDO DB helper, migrations runner, and seed data scripts.
Original file line number Diff line number Diff line change 5353
5454$ router
5555 ->get ('/ ' , static function (Request $ request ) use ($ config ) {
56- return View:: render ( ' home ' , [ ' title ' => $ config [ ' app ' ][ ' name ' ] ?? ' ThriftStack ' ] );
56+ return Response:: redirect ( ' /dashboard ' );
5757 })
5858 ->setName ('home ' );
5959
Original file line number Diff line number Diff line change 11const { test, expect } = require ( '@playwright/test' ) ;
22
3- test ( 'home page renders ' , async ( { page } ) => {
3+ test ( 'root redirects to login for signed-out users ' , async ( { page } ) => {
44 await page . goto ( '/' ) ;
55
6- await expect ( page . getByRole ( 'heading' , { level : 1 } ) ) . toContainText ( 'Welcome to ') ;
6+ await expect ( page . getByRole ( 'heading' , { level : 1 } ) ) . toHaveText ( 'Login ') ;
77} ) ;
88
9- test ( 'support page is reachable from the footer' , async ( { page } ) => {
9+ test ( 'support page is reachable from the footer when signed out ' , async ( { page } ) => {
1010 await page . goto ( '/' ) ;
1111 await page . getByRole ( 'link' , { name : 'Support' } ) . click ( ) ;
1212
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments