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.
48 lines
991 B
QML
48 lines
991 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import QtTest
|
|
|
|
import "../../qml/components/liquidity" as Liquidity
|
|
|
|
TestCase {
|
|
id: testCase
|
|
|
|
name: "ResponsivePopups"
|
|
|
|
Liquidity.AmmTheme {
|
|
id: theme
|
|
}
|
|
|
|
Component {
|
|
id: viewportComponent
|
|
|
|
Item {
|
|
width: 320
|
|
height: 300
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: tokenSelectorComponent
|
|
|
|
Liquidity.TokenSelectorModal {
|
|
theme: theme
|
|
}
|
|
}
|
|
|
|
function test_tokenSelectorStaysInsideShortViewport() {
|
|
var viewport = createTemporaryObject(viewportComponent, testCase)
|
|
var selector = createTemporaryObject(tokenSelectorComponent, viewport, {
|
|
"parent": viewport
|
|
})
|
|
verify(viewport)
|
|
verify(selector)
|
|
|
|
verify(selector.x >= 0)
|
|
verify(selector.y >= 0)
|
|
verify(selector.x + selector.width <= viewport.width)
|
|
verify(selector.y + selector.height <= viewport.height)
|
|
}
|
|
}
|