@@ -398,8 +398,13 @@ StyledItem {
398398 function test_sessionless_user_is_still_valid() {
399399 var loginList = findChild(view, "loginList")
400400
401+ /*
402+ * If a user has never logged in before, or, for some reason
403+ * has no sessionHint, ensure that the model returns the default
404+ * session and that the view respects this
405+ */
401406 selectUser("no-session");
402− compare(LightDM.Users.data(loginList.currentIndex, LightDM.UserRoles.SessionRole), "");
407+ compare(LightDM.Users.data(loginList.currentIndex, LightDM.UserRoles.SessionRole), LightDM.Greeter.defaultSession);
403408
404409 tryCompare(loginList, "currentSession", LightDM.Greeter.defaultSession);
405410 }