diff --git a/core/internal/qmlchecks/greeter_session_memory_test.go b/core/internal/qmlchecks/greeter_session_memory_test.go deleted file mode 100644 index 5a0f98643..000000000 --- a/core/internal/qmlchecks/greeter_session_memory_test.go +++ /dev/null @@ -1,22 +0,0 @@ -package qmlchecks - -import ( - "os" - "strings" - "testing" -) - -func TestGreeterRememberLastSessionFallsBackToDesktopID(t *testing.T) { - data, err := os.ReadFile("../../../quickshell/Modules/Greetd/GreeterContent.qml") - if err != nil { - t.Fatalf("read greeter QML: %v", err) - } - - content := string(data) - if !strings.Contains(content, "GreetdMemory.lastSessionDesktopId || desktopIdFromPath(GreetdMemory.lastSessionId)") { - t.Fatalf("remembered greeter sessions should derive a desktop id from legacy absolute session paths") - } - if !strings.Contains(content, "GreeterState.sessionDesktopIds[i] === savedDesktopId") { - t.Fatalf("remembered greeter sessions should match current sessions by desktop id") - } -} diff --git a/core/internal/qmlchecks/lockscreen_input_test.go b/core/internal/qmlchecks/lockscreen_input_test.go index ab54aefe8..77f924c9e 100644 --- a/core/internal/qmlchecks/lockscreen_input_test.go +++ b/core/internal/qmlchecks/lockscreen_input_test.go @@ -24,32 +24,6 @@ func TestLockScreenPasswordFieldBypassesTextInputIME(t *testing.T) { } } -func TestLockScreenAuthenticationCardOwnsFactorControls(t *testing.T) { - data, err := os.ReadFile("../../../quickshell/Modules/Settings/LockScreenTab.qml") - if err != nil { - t.Fatalf("read lock screen settings QML: %v", err) - } - - content := string(data) - authCard := strings.Index(content, `title: I18n.tr("Authentication")`) - behaviorCard := strings.Index(content, `title: I18n.tr("Lock Screen behaviour")`) - fingerprintToggle := strings.Index(content, `settingKey: "enableFprint"`) - u2fToggle := strings.Index(content, `settingKey: "enableU2f"`) - u2fSource := strings.Index(content, `settingKey: "lockU2fPamPath"`) - if authCard < 0 || behaviorCard < 0 || fingerprintToggle < 0 || u2fToggle < 0 || u2fSource < 0 { - t.Fatalf("expected authentication card, factor toggles, and U2F source setting") - } - for name, position := range map[string]int{ - "fingerprint toggle": fingerprintToggle, - "U2F toggle": u2fToggle, - "U2F source": u2fSource, - } { - if position < authCard || position > behaviorCard { - t.Fatalf("%s must remain in the authentication card", name) - } - } -} - func TestLockScreenPamSupportsManagedAndSystemPolicies(t *testing.T) { data, err := os.ReadFile("../../../quickshell/Modules/Lock/Pam.qml") if err != nil {