Files
lez-programs/apps/amm/tests/qml/tst_LiquidityConfirmationDialog.qml
T
Ricardo Guilherme Schmidt 8c3e6fccfe 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.
2026-08-21 17:38:45 -03:00

31 lines
691 B
QML

pragma ComponentBehavior: Bound
import QtQuick
import QtTest
import "../../qml/components/liquidity" as Liquidity
TestCase {
id: testCase
name: "LiquidityConfirmationSummary"
Component {
id: summaryComponent
Liquidity.LiquidityConfirmationSummary {
width: 480
}
}
function test_protocolActionsUseDisplayLabels() {
var summary = createTemporaryObject(summaryComponent, testCase)
verify(summary)
summary.snapshot = { "poolExists": false }
compare(summary.actionText(), "Create pool")
summary.snapshot = { "poolExists": true }
compare(summary.actionText(), "Add liquidity")
}
}