cc: network popup opens at the top

fixes #3605
This commit is contained in:
bbedward
2026-09-28 16:59:42 -04:00
parent e372c48009
commit 33bc0a0dff
4 changed files with 22 additions and 4 deletions
Generated
+3 -3
View File
@@ -3,11 +3,11 @@
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1790625801,
"narHash": "sha256-0Kp9h1acdzOHcSixIXV5TCOfDsWzrOnfW9JX6/RaeuA=",
"lastModified": 1790629133,
"narHash": "sha256-7JJ/KInBXNrjpQR5Mq4Fs1sj48FIyZ0dDNUMX+wmyNo=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "3ceee0174f558a0908eea83910f07af24dc8dc73",
"rev": "4caf2309145923503a1beed6a450498814210e55",
"type": "github"
},
"original": {
@@ -299,6 +299,7 @@ Item {
DankListView {
id: pageList
objectName: "networkList"
anchors.fill: parent
clip: true
@@ -2,6 +2,7 @@ import QtQuick
import QtTest
import Quickshell
import qs.Common
import qs.Services
import qs.Modules.ControlCenter
import qs.Modules.DankIsland
import qs.Modules.ControlCenter.Components
@@ -341,6 +342,22 @@ ShellRoot {
width: 600,
height: 400
});
NetworkService.wifiEnabled = true;
NetworkService.wifiInterface = "wlan0";
NetworkService.wifiNetworks = Array.from({
length: 8
}, (_, i) => ({
ssid: "Net" + i,
signal: 90 - i * 8,
secured: true
}));
detail.section = "wifi";
waitFor(() => !detail.transitioning && detail.pageItem !== null, "wifi detail page loads");
settle();
const networkList = named(detail.pageItem, "networkList");
waitFor(() => networkList.count === 8, "wifi rows load");
settle();
check(networkList.atYBeginning, "network popup opens at the top, contentY " + networkList.contentY + " vs origin " + networkList.originY);
detail.section = "doNotDisturb";
settle();
detail.section = "";