Skip to content

Commit

Permalink
[Test] behat - skip donation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed Feb 18, 2021
1 parent d9819d5 commit a1a39a0
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 1 deletion.
1 change: 1 addition & 0 deletions behat.yml.dist
Expand Up @@ -43,3 +43,4 @@ default:
version: ''
wd_host: http://selenium:4444/wd/hub
Behatch\Extension: ~
Bex\Behat\SkipTestsExtension: ~
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -136,6 +136,7 @@
"behat/mink-selenium2-driver": "^1.3",
"behat/symfony2-extension": "^2.1",
"behatch/contexts": "^2.7",
"bex/behat-skip-tests": "^1.2",
"coduo/php-matcher": "^5.0",
"dama/doctrine-test-bundle": "^5.0",
"doctrine/doctrine-fixtures-bundle": "^3.3",
Expand Down
53 changes: 52 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions features/donation.feature
Expand Up @@ -37,6 +37,7 @@ Feature: The goal is to donate one time or multiple time with a subscription
And I should see "Le don que vous vous apprêtez à faire est trop élevé, car vous avez déjà donné 200 euros cette année. Les dons étant limités à 7500 euros par an et par personne, vous pouvez encore donner 7300 euros."

@javascript
@pending
Scenario: An anonymous user can donate successfully
Given the following fixtures are loaded:
| LoadDonatorIdentifierData |
Expand Down Expand Up @@ -78,6 +79,7 @@ Feature: The goal is to donate one time or multiple time with a subscription
Then I should see "Continuons à transformer notre pays ensemble !"

@javascript
@pending
Scenario: The user can subscribe to donate each month successfully but can't have a second subscription
Given the following fixtures are loaded:
| LoadDonatorIdentifierData |
Expand Down Expand Up @@ -149,6 +151,7 @@ Feature: The goal is to donate one time or multiple time with a subscription
And the "Adresse e-mail" field should contain "jean.dupont@en-marche.fr"

@javascript
@pending
Scenario: The logged user can subscribe to donate each month successfully but can't have a second subscription without unsubscribe before
Given the following fixtures are loaded:
| LoadAdherentData |
Expand Down Expand Up @@ -236,6 +239,7 @@ Feature: The goal is to donate one time or multiple time with a subscription
Then I should see "Continuons à transformer notre pays ensemble !"

@javascript
@pending
Scenario: The logged user can continue to donate punctually with a subscription currently running
Given the following fixtures are loaded:
| LoadDonationData |
Expand Down
3 changes: 3 additions & 0 deletions symfony.lock
Expand Up @@ -64,6 +64,9 @@
"behatch/contexts": {
"version": "2.8.1"
},
"bex/behat-skip-tests": {
"version": "1.2.0"
},
"brick/math": {
"version": "0.9.1"
},
Expand Down

0 comments on commit a1a39a0

Please sign in to comment.