Skip to content

Add Pest feature tests for SuperNative home and Filament admin panel - #3

Open
prateekbhujel wants to merge 1 commit into
NativePHP:mainfrom
prateekbhujel:test/supernative-and-filament-pest-suite
Open

prateekbhujel wants to merge 1 commit into
NativePHP:mainfrom
prateekbhujel:test/supernative-and-filament-pest-suite

Conversation

@prateekbhujel

Copy link
Copy Markdown

Pest is installed as the primary test framework in composer.json, but tests/ previously contained only default boilerplate (assertTrue(true) and a generic status 200 check).

Changes

  • Added tests/Feature/HomeScreenTest.php testing that GET / returns 200 OK and that Home NativeComponent configures the expected navigation title, view (native.home), and package metadata.
  • Added tests/Feature/AdminPanelTest.php testing that guests are redirected to /admin/login, the Filament login form renders successfully, and authenticated users can access the dashboard.
  • Removed boilerplate tests/Feature/ExampleTest.php superseded by the focused test suites.

Replace the boilerplate ExampleTest with Pest feature test coverage for
the SuperNative Home component (navigation title, view name, packages
payload) and the Filament admin panel (guest redirect to login, login page
render, authenticated dashboard access).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant