Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Navigate to accounts from transfer actions
Implemented a read only view for the proxy voter Only allow the TransferDetailLayout to navigate one level deep into accounts Added a ui test for navigating to account from confirm transfer Implemented a ui test for navigating to accounts from actions :robot:
- Loading branch information
Showing
22 changed files
with
4,062 additions
and
258 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
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
33 changes: 33 additions & 0 deletions
33
...roidTestStub/java/com/memtrip/eosreach/app/actions/NavigateToAccountFromActionTestCase.kt
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,33 @@ | ||
package com.memtrip.eosreach.app.actions | ||
|
||
import com.memtrip.eosreach.StubTestCase | ||
|
||
class NavigateToAccountFromActionTestCase : StubTestCase() { | ||
|
||
override fun test() { | ||
importKeyOrchestra.go("5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3") | ||
accountRobot | ||
.verifyAccountScreen() | ||
balanceRobot | ||
.verifyBalanceScreen() | ||
.selectFirstTokenRow() | ||
actionsRobot | ||
.verifyActionsScreen() | ||
.selectFirstActionRow() | ||
.verifyViewTransferActionScreen() | ||
.selectViewTransferActionFromAccountLabel() | ||
accountRobot | ||
.verifyReadOnlyAccountScreen() | ||
balanceRobot | ||
.verifyBalanceScreen() | ||
.selectFirstTokenRow() | ||
actionsRobot | ||
.verifyActionsReadOnlyScreen() | ||
.selectFirstActionRow() | ||
.verifyViewTransferActionScreen() | ||
.selectViewTransferActionFromAccountLabel() | ||
// the label will be read only at the point, so the user will remain on the current screen | ||
.verifyViewTransferActionScreen() | ||
} | ||
} | ||
|
28 changes: 28 additions & 0 deletions
28
...dTestStub/java/com/memtrip/eosreach/app/transfer/NavigateToAccountFromTransferTestCase.kt
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,28 @@ | ||
package com.memtrip.eosreach.app.transfer | ||
|
||
import com.memtrip.eosreach.StubTestCase | ||
|
||
class NavigateToAccountFromTransferTestCase : StubTestCase() { | ||
|
||
override fun test() { | ||
importKeyOrchestra.go("5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3") | ||
accountRobot | ||
.verifyAccountScreen() | ||
balanceRobot | ||
.verifyBalanceScreen() | ||
.selectFirstTokenRow() | ||
actionsRobot | ||
.verifyActionsScreen() | ||
.selectTransferButton() | ||
transferRobot | ||
.verifyTransferScreen() | ||
.enterRecipient("memtripblock") | ||
.enterAmount("0.0001") | ||
.enterMemo("Here is some coin") | ||
.selectNextButton() | ||
.verifyTransferConfirmationScreen() | ||
.selectToAccountLabel() | ||
accountRobot | ||
.verifyReadOnlyAccountScreen() | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...id/app/src/main/java/com/memtrip/eosreach/app/proxyvoter/DefaultViewProxyVoterActivity.kt
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,10 @@ | ||
package com.memtrip.eosreach.app.proxyvoter | ||
|
||
import dagger.android.AndroidInjection | ||
|
||
class DefaultViewProxyVoterActivity : ViewProxyVoterActivity() { | ||
|
||
override fun inject() { | ||
AndroidInjection.inject(this) | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
...d/app/src/main/java/com/memtrip/eosreach/app/proxyvoter/ReadOnlyViewProxyVoterActivity.kt
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,27 @@ | ||
package com.memtrip.eosreach.app.proxyvoter | ||
|
||
import android.content.res.Resources | ||
import com.memtrip.eosreach.R | ||
import com.memtrip.eosreach.api.proxyvoter.ProxyVoterDetails | ||
import com.memtrip.eosreach.uikit.gone | ||
import kotlinx.android.synthetic.main.proxy_voter_view_activity.* | ||
|
||
import dagger.android.AndroidInjection | ||
|
||
class ReadOnlyViewProxyVoterActivity : ViewProxyVoterActivity() { | ||
|
||
override fun populate(proxyVoterDetails: ProxyVoterDetails) { | ||
super.populate(proxyVoterDetails) | ||
proxy_voter_view_owner_account_button.gone() | ||
} | ||
|
||
override fun inject() { | ||
AndroidInjection.inject(this) | ||
} | ||
|
||
override fun getTheme(): Resources.Theme { | ||
val theme = super.getTheme() | ||
theme.applyStyle(R.style.ReadOnlyAppTheme, true) | ||
return theme | ||
} | ||
} |
Oops, something went wrong.