-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1854 from dedis/work-karate-4xiom5-final-ui-tests
Karate UI Digital Cash Tests
- Loading branch information
Showing
8 changed files
with
99 additions
and
2 deletions.
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
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
44 changes: 44 additions & 0 deletions
44
tests/karate/src/test/java/fe/features/digital_cash.feature
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,44 @@ | ||
Feature: Digital Cash | ||
Background: | ||
* call read('classpath:fe/utils/constants.feature') | ||
* call read(MOCK_CLIENT_FEATURE) | ||
|
||
@name=digital_cash_page | ||
Scenario: | ||
Given def organizer = createMockClient() | ||
And def lao = organizer.createLao() | ||
And call read(PLATFORM_FEATURE) { name: '#(JOIN_ROLLCALL)', params: { lao: '#(lao)', organizer: '#(organizer)' } } | ||
When call read(PLATFORM_FEATURE) { name: '#(SWITCH_TO_DIGITAL_CASH_PAGE)' } | ||
Then assert exists(digital_cash_first_roll_call_button) | ||
And screenshot() | ||
|
||
@name=digital_cash_page_organizer | ||
Scenario: | ||
Given call read(PLATFORM_FEATURE) { name: '#(ORGANIZER_WITH_POP_TOKEN)' } | ||
When call read(PLATFORM_FEATURE) { name: '#(SWITCH_TO_DIGITAL_CASH_PAGE)' } | ||
Then assert exists(digital_cash_coin_issuance_button) | ||
And screenshot() | ||
|
||
@name=digital_cash_initial_issuance_one_address | ||
Scenario: | ||
Given call read(PLATFORM_FEATURE) { name: '#(ORGANIZER_WITH_POP_TOKEN)' } | ||
And call read(PLATFORM_FEATURE) { name: '#(SWITCH_TO_DIGITAL_CASH_PAGE)' } | ||
And waitFor(digital_cash_coin_issuance_button).click() | ||
And def amount = '1337' | ||
When waitFor(digital_cash_beneficiary_input).input(popToken) | ||
And waitFor(digital_cash_amount_input).input(amount) | ||
And screenshot() | ||
And waitFor(digital_cash_send_button).click() | ||
Then screenshot() | ||
|
||
@name=digital_cash_initial_issuance_roll_call | ||
Scenario: | ||
Given call read(PLATFORM_FEATURE) { name: '#(ORGANIZER_WITH_POP_TOKEN)' } | ||
And call read(PLATFORM_FEATURE) { name: '#(SWITCH_TO_DIGITAL_CASH_PAGE)' } | ||
And waitFor(digital_cash_coin_issuance_button).click() | ||
And def amount = '1337' | ||
When selectOption(digital_cash_beneficiary_select, 1) | ||
And waitFor(digital_cash_amount_input).input(amount) | ||
And screenshot() | ||
And waitFor(digital_cash_send_button).click() | ||
Then screenshot() |
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