Skip to content

Commit 556dddb

Browse files
committed
Refonte Trésorie > Devis - Ajout / Edition
1 parent 53fa11d commit 556dddb

File tree

24 files changed

+1462
-78
lines changed

24 files changed

+1462
-78
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ js_dist
5151
/compose.override.yml
5252
/composer.phar
5353
/data
54+
drivers
55+
chromedriver.log
5456

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ test-functional: data config htdocs/uploads tmp
106106
$(DOCKER_COMP) stop dbtest apachephptest mailcatcher
107107
$(DOCKER_COMP) up -d dbtest apachephptest mailcatcher
108108
make clean-test-deprecated-log
109+
$(DOCKER_COMP) run --no-deps --rm -u localUser apachephp ./bin/bdi detect drivers
109110
$(DOCKER_COMP) run --no-deps --rm -u localUser apachephp ./bin/behat
110111
make var/logs/test.deprecations_grouped.log
111112
$(DOCKER_COMP) stop dbtest apachephptest mailcatcher

app/config/routing/admin_accounting.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ admin_accounting_quotations_list:
9898
path: /quotations/list
9999
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\ListQuotationAction}
100100

101+
admin_accounting_quotations_add:
102+
path: /quotations/add
103+
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\AddQuotationAction}
104+
105+
admin_accounting_quotations_edit:
106+
path: /quotations/edit
107+
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\EditQuotationAction}
108+
101109
admin_accounting_quotations_download:
102110
path: /quotations/download
103111
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\DownloadQuotationAction}

behat.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,34 @@ default:
99
- FeatureContext
1010
- Behat\MinkExtension\Context\MinkContext
1111
extensions:
12+
Robertfausk\Behat\PantherExtension: ~
1213
Behat\MinkExtension:
1314
base_url: 'https://apachephptest:80'
1415
files_path: '%paths.base%/tests/behat/files'
15-
browserkit_http:
16-
http_client_parameters:
17-
verify_peer: false
18-
verify_host: false
16+
default_session: browserkit_http
17+
javascript_session: panther
18+
sessions:
19+
browserkit_http:
20+
browserkit_http:
21+
http_client_parameters:
22+
verify_peer: false
23+
verify_host: false
24+
panther:
25+
panther:
26+
options:
27+
browser: 'chrome'
28+
webServerDir: '%paths.base%/htdocs'
29+
external_base_uri: 'https://apachephptest:80'
30+
manager_options:
31+
chromedriver_arguments:
32+
- '--headless'
33+
- '--disable-gpu'
34+
- '--no-sandbox'
35+
- '--disable-dev-shm-usage'
36+
- '--disable-extensions'
37+
- '--log-path=/var/www/html/chromedriver.log'
38+
capabilities:
39+
goog:chromeOptions:
40+
args:
41+
- --ignore-certificate-errors
42+
external_base_uri: 'https://apachephptest:80'

compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ services:
3535
SYMFONY_ENV: "dev"
3636
HOST_PWD: ${PWD}
3737
SYMFONY_IDE: "%env(IDE_USED)%://open?url=file://%%f&line=%%l&/var/www/html/>%env(HOST_PWD)%/"
38+
PANTHER_NO_SANDBOX: 1
39+
PANTHER_CHROME_ARGUMENTS: '--disable-dev-shm-usage --disable-features=IsolateOrigins,site-per-process,TrackingProtection3pcd'
3840
env_file:
3941
.env
4042
volumes:

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@
137137
"require-dev": {
138138
"behat/behat": "^3.15",
139139
"behat/mink-browserkit-driver": "^2.2",
140+
"dbrekelmans/bdi": "^1.4",
140141
"fakerphp/faker": "^1.24",
141142
"friends-of-behat/mink-extension": "^2.7",
142143
"friendsofphp/php-cs-fixer": "^3.75",
@@ -148,6 +149,7 @@
148149
"phpstan/phpstan-symfony": "^2.0",
149150
"phpunit/phpunit": "11.*",
150151
"rector/rector": "^2.0",
152+
"robertfausk/behat-panther-extension": "^1.2",
151153
"smalot/pdfparser": "^0.19.0",
152154
"symfony/debug-bundle": "7.3.*",
153155
"symfony/json-path": "7.3.*",

0 commit comments

Comments
 (0)