Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ js_dist
/compose.override.yml
/composer.phar
/data
drivers
chromedriver.log

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ test-functional: data config htdocs/uploads tmp
$(DOCKER_COMP) stop dbtest apachephptest mailcatcher
$(DOCKER_COMP) up -d dbtest apachephptest mailcatcher
make clean-test-deprecated-log
$(DOCKER_COMP) run --no-deps --rm -u localUser apachephptest ./bin/bdi detect drivers
$(DOCKER_COMP) run --no-deps --rm -u localUser apachephptest ./bin/behat
make var/logs/test.deprecations_grouped.log
$(DOCKER_COMP) stop dbtest apachephptest mailcatcher
Expand Down
2 changes: 2 additions & 0 deletions app/config/packages/backoffice_menu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ parameters:
niveau: 'ROLE_ADMIN'
extra_routes:
- admin_accounting_quotations_list
- admin_accounting_quotations_add
- admin_accounting_quotations_edit
compta_facture:
nom: 'Factures'
url: '/admin/accounting/invoices/list'
Expand Down
8 changes: 8 additions & 0 deletions app/config/routing/admin_accounting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ admin_accounting_quotations_list:
path: /quotations/list
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\ListQuotationAction}

admin_accounting_quotations_add:
path: /quotations/add
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\AddQuotationAction}

admin_accounting_quotations_edit:
path: /quotations/edit
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\EditQuotationAction}

admin_accounting_quotations_download:
path: /quotations/download
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\DownloadQuotationAction}
Expand Down
44 changes: 40 additions & 4 deletions behat.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,53 @@
use Behat\Config\Suite;
use Behat\MinkExtension\Context\MinkContext;
use Behat\MinkExtension\ServiceContainer\MinkExtension;
use Robertfausk\Behat\PantherExtension\ServiceContainer\PantherExtension;

return (new Config())
->withProfile(
(new Profile('default'))
->withExtension(new Extension(PantherExtension::class))
->withExtension(new Extension(MinkExtension::class, [
'base_url' => 'https://apachephptest:80',
'files_path' => '%paths.base%/tests/behat/files',
'browserkit_http' => [
'http_client_parameters' => [
'verify_peer' => false,
'verify_host' => false,
'default_session' => 'browserkit_http',
'javascript_session' => 'panther',
'sessions' => [
'browserkit_http' => [
'browserkit_http' => [
'http_client_parameters' => [
'verify_peer' => false,
'verify_host' => false,
],
],
],
'panther' => [
'panther' => [
'options' => [
'browser' => 'chrome',
'webServerDir' => '%paths.base%/htdocs',
'external_base_uri' => 'https://apachephptest:80',
],
'manager_options' => [
'chromedriver_arguments' => [
'--log-path=/var/www/html/chromedriver.log',
'--verbose',
],
'capabilities' => [
'goog:chromeOptions' => [
'args' => [
'--headless',
'--disable-gpu',
'--no-sandbox',
'--disable-dev-shm-usage',
'--disable-extensions',
'--ignore-certificate-errors',
],
],
],
'external_base_uri' => 'https://apachephptest:80',
],
],
],
],
]))
Expand Down
2 changes: 2 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ services:
APP_ENV: "dev"
HOST_PWD: ${PWD}
SYMFONY_IDE: "%env(IDE_USED)%://open?url=file://%%f&line=%%l&/var/www/html/>%env(HOST_PWD)%/"
PANTHER_NO_SANDBOX: 1
PANTHER_CHROME_ARGUMENTS: '--disable-dev-shm-usage --disable-features=IsolateOrigins,site-per-process,TrackingProtection3pcd'
env_file:
.env
volumes:
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"require-dev": {
"behat/behat": "^3.29",
"behat/mink-browserkit-driver": "^2.3",
"dbrekelmans/bdi": "^1.4",
"fakerphp/faker": "^1.24",
"friends-of-behat/mink-extension": "^2.7",
"friendsofphp/php-cs-fixer": "^3.75",
Expand All @@ -152,6 +153,7 @@
"phpstan/phpstan-webmozart-assert": "^2.0",
"phpunit/phpunit": "11.*",
"rector/rector": "^2.0",
"robertfausk/behat-panther-extension": "^1.2",
"smalot/pdfparser": "^0.19.0",
"symfony/debug-bundle": "7.3.*",
"symfony/json-path": "7.3.*",
Expand Down
Loading
Loading