Skip to content

Commit

Permalink
[FEATURE] Add new acceptance test for manipulating powermail all via ts
Browse files Browse the repository at this point in the history
Related: #1112
Related: #1112
  • Loading branch information
mschwemer committed Oct 2, 2024
1 parent 7cad76a commit 7a2f760
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .project/data/db.sql.gz
Git LFS file not shown
47 changes: 47 additions & 0 deletions Tests/Behavior/Features/Pi1/Misc/ManipulatePowermailAll.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Features/Pi1/Misc/NoForm.feature
@Pi1 @Pi1Misc @Pi1MiscManipulatePowermailAllViaTyposcript
Feature: ManipulatePowermailAllViaTyposcript

Scenario: Check if values can be manipulated in from {powermail_all} via typoscript
Given I am on "/powermail/pi1/misc/manipulate-powermailall-via-ts"
Then I should see "Manipulate Powermail All via TypoScript"

When I fill in "tx_powermail_pi1[field][inputfield]" with "This is a test"
When I check "brown"
When I check "blue"
When I check "yellow-no"
When I check "green-no"
When I check "Horse"
When I check "Rabbit"
When I check "Horse No"
When I select "Volkswagen" from "tx_powermail_pi1[field][selectsinglecarlabelvaluemanipulation]"
When I select "Vauxhall No" from "tx_powermail_pi1[field][selectsinglecarlabelvaluenomanipulation]"
When I select "rose" from "tx_powermail_pi1[field][selectflower]"
When I select "daisy-no" from "tx_powermail_pi1[field][selectsingleflowerlabelonlymanipulation]"
When I select "Beech" from "tx_powermail_pi1[field][selectmultitrees][]"
When I additionally select "Holly" from "tx_powermail_pi1[field][selectmultitrees][]"
When I select "Beech - No" from "tx_powermail_pi1[field][marker][]"
When I additionally select "Maple - No" from "tx_powermail_pi1[field][marker][]"
When I select "Pear" from "tx_powermail_pi1[field][selectmultifruit][]"
When I additionally select "Strawberry" from "tx_powermail_pi1[field][selectmultifruit][]"
When I select "Apple - No" from "tx_powermail_pi1[field][selectmultifruitlabelonlynomanipulation][]"
When I additionally select "Ananas - No" from "tx_powermail_pi1[field][selectmultifruitlabelonlynomanipulation][]"

And I press "Absenden"

Then I should see "Sind diese Eingaben korrekt?"
Then I should see "Input field"
Then I should see "Hello world"
Then I should see "Changed color, blue"
Then I should see "yellow-no, green-no"
Then I should see "Horse, Changed animal"
Then I should see "Horse no"
Then I should see "Changed car"
Then I should see "Vaushall No"
Then I should see "Changed flower"
Then I should see "daisy-no"
Then I should see "Changed tree, Holly"
Then I should see "Beech - No, Maple - No"
Then I should see "Pear, Strawberry"
Then I should see "Apple - No, Ananas - No"

0 comments on commit 7a2f760

Please sign in to comment.