Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 apachephp ./bin/bdi detect drivers
$(DOCKER_COMP) run --no-deps --rm -u localUser apachephp ./bin/behat
make var/logs/test.deprecations_grouped.log
$(DOCKER_COMP) stop dbtest apachephptest mailcatcher
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
32 changes: 28 additions & 4 deletions behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,34 @@ default:
- FeatureContext
- Behat\MinkExtension\Context\MinkContext
extensions:
Robertfausk\Behat\PantherExtension: ~
Behat\MinkExtension:
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:
- '--headless'
- '--disable-gpu'
- '--no-sandbox'
- '--disable-dev-shm-usage'
- '--disable-extensions'
- '--log-path=/var/www/html/chromedriver.log'
capabilities:
goog:chromeOptions:
args:
- --ignore-certificate-errors
external_base_uri: 'https://apachephptest:80'
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:
SYMFONY_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 @@ -133,6 +133,7 @@
"require-dev": {
"behat/behat": "^3.15",
"behat/mink-browserkit-driver": "^2.2",
"dbrekelmans/bdi": "^1.4",
"fakerphp/faker": "^1.24",
"friends-of-behat/mink-extension": "^2.7",
"friendsofphp/php-cs-fixer": "^3.75",
Expand All @@ -144,6 +145,7 @@
"phpstan/phpstan-symfony": "^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