Skip to content

Commit fbd602c

Browse files
authored
Refonte Trésorie > Devis - Ajout / Edition (#2016)
Co-authored-by: vgreb <vgreb@users.noreply.github.com>
1 parent 1e4a47c commit fbd602c

File tree

29 files changed

+1680
-100
lines changed

29 files changed

+1680
-100
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ js_dist
5252
/composer.phar
5353
/data
5454
/assets/vendor/
55+
drivers
56+
chromedriver.log

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 apachephptest ./bin/bdi detect drivers
109110
$(DOCKER_COMP) run --no-deps --rm -u localUser apachephptest ./bin/behat
110111
make var/logs/test.deprecations_grouped.log
111112
$(DOCKER_COMP) stop dbtest apachephptest mailcatcher

app/config/packages/backoffice_menu.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ parameters:
228228
niveau: 'ROLE_ADMIN'
229229
extra_routes:
230230
- admin_accounting_quotations_list
231+
- admin_accounting_quotations_add
232+
- admin_accounting_quotations_edit
231233
compta_facture:
232234
nom: 'Factures'
233235
url: '/admin/accounting/invoices/list'

app/config/routing/admin_accounting.yml

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

17+
admin_accounting_quotations_add:
18+
path: /quotations/add
19+
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\AddQuotationAction}
20+
21+
admin_accounting_quotations_edit:
22+
path: /quotations/edit
23+
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\EditQuotationAction}
24+
1725
admin_accounting_quotations_download:
1826
path: /quotations/download
1927
defaults: {_controller: AppBundle\Controller\Admin\Accounting\Quotation\DownloadQuotationAction}

behat.php

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,54 @@
77
use Behat\Config\Suite;
88
use Behat\MinkExtension\Context\MinkContext;
99
use Behat\MinkExtension\ServiceContainer\MinkExtension;
10+
use Robertfausk\Behat\PantherExtension\ServiceContainer\PantherExtension;
1011

1112
return (new Config())
1213
->withProfile(
1314
(new Profile('default'))
15+
->withExtension(new Extension(PantherExtension::class))
1416
->withExtension(new Extension(MinkExtension::class, [
1517
'base_url' => 'https://apachephptest:80',
1618
'files_path' => '%paths.base%/tests/behat/files',
17-
'browserkit_http' => [
18-
'http_client_parameters' => [
19-
'verify_peer' => false,
20-
'verify_host' => false,
19+
'default_session' => 'browserkit_http',
20+
'javascript_session' => 'panther',
21+
'sessions' => [
22+
'browserkit_http' => [
23+
'browserkit_http' => [
24+
'http_client_parameters' => [
25+
'verify_peer' => false,
26+
'verify_host' => false,
27+
],
28+
],
29+
],
30+
'panther' => [
31+
'panther' => [
32+
'options' => [
33+
'browser' => 'chrome',
34+
'webServerDir' => '%paths.base%/htdocs',
35+
'external_base_uri' => 'https://apachephptest:80',
36+
],
37+
'manager_options' => [
38+
'chromedriver_arguments' => [
39+
'--log-path=/var/www/html/chromedriver.log',
40+
'--verbose',
41+
],
42+
'capabilities' => [
43+
'goog:chromeOptions' => [
44+
'args' => [
45+
'--headless',
46+
'--disable-gpu',
47+
'--no-sandbox',
48+
'--disable-dev-shm-usage',
49+
'--disable-extensions',
50+
'--ignore-certificate-errors',
51+
'--disable-smooth-scrolling',
52+
],
53+
],
54+
],
55+
'external_base_uri' => 'https://apachephptest:80',
56+
],
57+
],
2158
],
2259
],
2360
]))

compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ services:
3535
APP_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 --window-size=1920,1080'
3840
env_file:
3941
.env
4042
volumes:

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
"require-dev": {
145145
"behat/behat": "^3.29",
146146
"behat/mink-browserkit-driver": "^2.3",
147+
"dbrekelmans/bdi": "^1.4",
147148
"fakerphp/faker": "^1.24",
148149
"friends-of-behat/mink-extension": "^2.7",
149150
"friendsofphp/php-cs-fixer": "^3.75",
@@ -157,6 +158,7 @@
157158
"phpstan/phpstan-webmozart-assert": "^2.0",
158159
"phpunit/phpunit": "11.*",
159160
"rector/rector": "^2.0",
161+
"robertfausk/behat-panther-extension": "^1.2",
160162
"smalot/pdfparser": "^1.0",
161163
"symfony/debug-bundle": "7.3.*",
162164
"symfony/json-path": "7.3.*",

0 commit comments

Comments
 (0)