mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-27 07:01:14 +00:00
feat(wallet): humanize shared wallet experience
Consolidate wallet account decoding and portfolio handling around the shared Rust IDL decoder. Simplify AMM wallet integration, remove obsolete caches and network plumbing, and cover account selection and live flows.
This commit is contained in:
@@ -103,6 +103,38 @@ Item {
|
||||
tryCompare(dialog, "opened", false)
|
||||
}
|
||||
|
||||
function test_activityStateDoesNotBlockCancellation() {
|
||||
const dialog = createTemporaryObject(dialogComponent, root)
|
||||
verify(dialog, "Dialog exists")
|
||||
dialog.openWithSnapshot({ amount: "5" })
|
||||
tryCompare(dialog, "opened", true)
|
||||
|
||||
dialog.activityBusy = true
|
||||
const cancelButton = findChild(dialog, "transactionCancelButton")
|
||||
const confirmButton = findChild(dialog, "transactionConfirmButton")
|
||||
verify(cancelButton.enabled)
|
||||
verify(!confirmButton.enabled)
|
||||
|
||||
dialog.cancel()
|
||||
tryCompare(dialog, "opened", false)
|
||||
}
|
||||
|
||||
function test_cancelUsesTheConfirmationButtonShape() {
|
||||
const dialog = createTemporaryObject(dialogComponent, root)
|
||||
verify(dialog, "Dialog exists")
|
||||
dialog.roundedCancelButton = true
|
||||
dialog.openWithSnapshot({ amount: "5" })
|
||||
tryCompare(dialog, "opened", true)
|
||||
|
||||
const cancelButtonLoader = findChild(dialog, "transactionCancelButtonLoader")
|
||||
const confirmButton = findChild(dialog, "transactionConfirmButton")
|
||||
verify(cancelButtonLoader)
|
||||
tryVerify(function() {
|
||||
return cancelButtonLoader.item
|
||||
&& cancelButtonLoader.item.background.radius === confirmButton.background.radius
|
||||
})
|
||||
}
|
||||
|
||||
function test_keepsActionsInsideShortViewport() {
|
||||
const viewport = createTemporaryObject(viewportComponent, root)
|
||||
verify(viewport, "Short viewport exists")
|
||||
|
||||
Reference in New Issue
Block a user