Skip to content

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

Merged
shanerbaner82 merged 1 commit into
NativePHP:mainfrom
prateekbhujel:test/supernative-and-filament-pest-suite
Sep 20, 2026
Merged

shanerbaner82 merged 1 commit into
NativePHP:mainfrom
prateekbhujel:test/supernative-and-filament-pest-suite

Conversation

@prateekbhujel

Copy link
Copy Markdown
Contributor

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).
@shanerbaner82
shanerbaner82 merged commit 0252455 into NativePHP:main Sep 20, 2026
@prateekbhujel
prateekbhujel deleted the test/supernative-and-filament-pest-suite branch September 21, 2026 19:36
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.

2 participants