Skip to content

Commit

Permalink
add timeout 30 to behat chrome_headless configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhero committed Jan 23, 2023
1 parent 5c5373e commit e7cfa37
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UPGRADE FROM `v1.2.0` TO `v1.2.1`
# UPGRADE FROM `v1.2.0` TO `v2.0`

New fields were added to BitBag\SyliusBonusPointsPlugin\Entity\BonusPointsInterface:

Expand All @@ -8,7 +8,8 @@ New fields were added to BitBag\SyliusBonusPointsPlugin\Entity\BonusPointsInterf

> New class `BitBag\SyliusBonusPointsPlugin\Creator\BonusPointsCreator` were added which is responsible to create new BonusPoints entity based on provided data's.
------------------------------

> [BC Break] - The new calculation of points breaks compatibility with existing data records in the db
### What has changed?

Expand Down
2 changes: 1 addition & 1 deletion behat.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default:

Behat\MinkExtension:
files_path: "%paths.base%/vendor/sylius/sylius/src/Sylius/Behat/Resources/fixtures/"
base_url: "https://127.0.0.1:8000/"
base_url: "https://127.0.0.1:8080/"
default_session: symfony
javascript_session: chrome_headless
sessions:
Expand Down
4 changes: 4 additions & 0 deletions src/EventListener/OrderBonusPointsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ public function assignBonusPoints(ResourceControllerEvent $event): void

$leftPointsFromPool = $availableBonusPoint->getLeftPointsFromAvailablePool();

if (0 >= $leftPointsFromPool) {
continue;
}

if ($points >= $leftPointsFromPool) {
$this->bonusPointsCreator->createWithData($customerBonusPoints, $order, $leftPointsFromPool, $availableBonusPoint);

Expand Down
2 changes: 1 addition & 1 deletion tests/Application/.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=test
APP_ENV=dev
APP_DEBUG=1
APP_SECRET=EDITME
###< symfony/framework-bundle ###
Expand Down

0 comments on commit e7cfa37

Please sign in to comment.