Skip to content

Commit e1c095f

Browse files
committed
Refonte Trésorie > Devis - Ajout / Edition
1 parent da5bc93 commit e1c095f

File tree

28 files changed

+1608
-86
lines changed

28 files changed

+1608
-86
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 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
@@ -218,6 +218,8 @@ parameters:
218218
niveau: 'ROLE_ADMIN'
219219
extra_routes:
220220
- admin_accounting_quotations_list
221+
- admin_accounting_quotations_add
222+
- admin_accounting_quotations_edit
221223
compta_facture:
222224
nom: 'Factures'
223225
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: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,53 @@
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+
],
52+
],
53+
],
54+
'external_base_uri' => 'https://apachephptest:80',
55+
],
56+
],
2157
],
2258
],
2359
]))

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'
3840
env_file:
3941
.env
4042
volumes:

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@
139139
"require-dev": {
140140
"behat/behat": "^3.29",
141141
"behat/mink-browserkit-driver": "^2.3",
142+
"dbrekelmans/bdi": "^1.4",
142143
"fakerphp/faker": "^1.24",
143144
"friends-of-behat/mink-extension": "^2.7",
144145
"friendsofphp/php-cs-fixer": "^3.75",
@@ -152,6 +153,7 @@
152153
"phpstan/phpstan-webmozart-assert": "^2.0",
153154
"phpunit/phpunit": "11.*",
154155
"rector/rector": "^2.0",
156+
"robertfausk/behat-panther-extension": "^1.2",
155157
"smalot/pdfparser": "^0.19.0",
156158
"symfony/debug-bundle": "7.3.*",
157159
"symfony/json-path": "7.3.*",

0 commit comments

Comments
 (0)