mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-17 20:39:28 +00:00
Implement one create-pool and add-liquidity workflow. Add searchable token resolution, direct opening-price and deposit editing, optimistic pool activation, and base58 transaction IDs. Isolate network, wallet, AMM client, and runtime boundaries. Stabilize quote, submission, refresh, and pool-probe state while consolidating liquidity tests and removing obsolete liquidity paths.
30 lines
664 B
QML
30 lines
664 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)
|
|
|
|
compare(summary.actionText("NewDefinition"), "Create pool")
|
|
compare(summary.actionText("AddLiquidity"), "Add liquidity")
|
|
compare(summary.actionText(""), "-")
|
|
}
|
|
}
|