-
-
Notifications
You must be signed in to change notification settings - Fork 728
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
8bac9c9
commit a740e1d
Showing
4 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
test/data/sandbox/codecept.bdd.de.js → test/data/sandbox/i18n/codecept.bdd.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
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/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