Adição do Docker e Dusk para o Monitoring#23
Open
Dreamwanter5 wants to merge 3 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a Docker-based local environment (app + MariaDB + Selenium) and scaffolds Laravel Dusk browser testing support.
Changes:
- Introduces Laravel Dusk test harness + example browser tests/pages.
- Adds Dockerfile and
docker-compose.ymlwith MariaDB and Selenium services for local runs. - Updates
.env.example,composer.json, and adds a/route to support local testing.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/DuskTestCase.php | Adds Dusk driver configuration and Chrome options for browser tests. |
| tests/Browser/source/.gitignore | Ignores generated Dusk artifacts while keeping directory in repo. |
| tests/Browser/screenshots/.gitignore | Ignores generated Dusk artifacts while keeping directory in repo. |
| tests/Browser/console/.gitignore | Ignores generated Dusk artifacts while keeping directory in repo. |
| tests/Browser/Pages/Page.php | Adds base Dusk Page class scaffold. |
| tests/Browser/Pages/HomePage.php | Adds HomePage scaffold for Dusk. |
| tests/Browser/IndexTest.php | Adds example Dusk test. |
| tests/Browser/ExampleTest.php | Adds example Dusk test. |
| routes/web.php | Adds root route pointing to StatusController@index for local tests. |
| dockerfile | Adds container image build steps for the app. |
| docker-compose.yml | Adds app + MariaDB + Selenium services for local environment. |
| composer.json | Adds laravel/dusk and spatie/laravel-ignition to dev dependencies. |
| .env.example | Switches DB defaults to MariaDB service and adds Dusk env vars. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -0,0 +1,47 @@ | |||
| services: | |||
| monitoring: | |||
| build: . | |||
Comment on lines
+16
to
+17
| volumes: | ||
| - ./:/var/www/html |
| use App\Http\Controllers\MesaController; | ||
| use App\Http\Controllers\TesteController; | ||
|
|
||
| Route::get('/', [StatusController::class,'index']); # adicionado em caso de testes locais |
| use App\Http\Controllers\MesaController; | ||
| use App\Http\Controllers\TesteController; | ||
|
|
||
| Route::get('/', [StatusController::class,'index']); # adicionado em caso de testes locais |
|
|
||
| namespace Tests\Browser; | ||
|
|
||
| use Illuminate\Foundation\Testing\DatabaseMigrations; |
|
|
||
| namespace Tests\Browser; | ||
|
|
||
| use Illuminate\Foundation\Testing\DatabaseMigrations; |
| - monitoring-network | ||
|
|
||
| selenium: | ||
| image: selenium/standalone-chrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docker-compose.ymlestá de acordo com o padrão UspDev.web.php