-
-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01b94fd
commit b652bd5
Showing
15 changed files
with
147 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/data/sandbox/features/step_definitions/my_steps.de.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const I = actor(); | ||
|
||
Given('ich habe ein Produkt mit einem Preis von {int}$ in meinem Warenkorb', (price) => { | ||
I.addItem(parseInt(price, 10)); | ||
}); | ||
|
||
Given('der Rabatt für Bestellungen über $\{int} beträgt {int} %', (maxPrice, discount) => { // eslint-disable-line | ||
I.haveDiscountForPrice(maxPrice, discount); | ||
}); | ||
|
||
When('ich zur Kasse gehe', () => { | ||
I.checkout(); | ||
}); | ||
|
||
Then('sollte ich den Gesamtpreis von "{float}" $ sehen', (price) => { | ||
I.seeSum(price); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
exports.config = { | ||
tests: './*_no_test.js', | ||
timeout: 10000, | ||
output: '../output', | ||
helpers: { | ||
BDD: { | ||
require: '../support/bdd_helper.js', | ||
}, | ||
}, | ||
gherkin: { | ||
features: './features/examples.de.feature', | ||
steps: [ | ||
'./features/step_definitions/my_steps.de.js', | ||
], | ||
}, | ||
include: {}, | ||
bootstrap: false, | ||
mocha: {}, | ||
name: 'sandbox', | ||
translation: 'de-DE', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#language: de | ||
Funktionalität: Checkout-Prozess | ||
Um Produkte zu kaufen | ||
Als Kunde | ||
Möchte ich in der Lage sein, mehrere Produkte zu kaufen | ||
|
||
@i18n | ||
Szenariogrundriss: Bestellrabatt | ||
Angenommen ich habe ein Produkt mit einem Preis von <price>$ in meinem Warenkorb | ||
Und der Rabatt für Bestellungen über $20 beträgt 10 % | ||
Wenn ich zur Kasse gehe | ||
Dann sollte ich den Gesamtpreis von "<total>" $ sehen | ||
|
||
Beispiele: | ||
| price | total | | ||
| 10 | 10.0 | |
17 changes: 17 additions & 0 deletions
17
test/data/sandbox/i18n/features/step_definitions/my_steps.de.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const I = actor(); | ||
|
||
Given('ich habe ein Produkt mit einem Preis von {int}$ in meinem Warenkorb', (price) => { | ||
I.addItem(parseInt(price, 10)); | ||
}); | ||
|
||
Given('der Rabatt für Bestellungen über $\{int} beträgt {int} %', (maxPrice, discount) => { // eslint-disable-line | ||
I.haveDiscountForPrice(maxPrice, discount); | ||
}); | ||
|
||
When('ich zur Kasse gehe', () => { | ||
I.checkout(); | ||
}); | ||
|
||
Then('sollte ich den Gesamtpreis von "{float}" $ sehen', (price) => { | ||
I.seeSum(price); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters