mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-07-30 18:53:11 +00:00
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(""), "-")
|
||
|
|
}
|
||
|
|
}
|