@@ -398,8 +398,13 @@ StyledItem {
398 function test_sessionless_user_is_still_valid() {
398 function test_sessionless_user_is_still_valid() {
399 var loginList = findChild(view, "loginList")
399 var loginList = findChild(view, "loginList")
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
401 selectUser("no-session");
406 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);
404 tryCompare(loginList, "currentSession", LightDM.Greeter.defaultSession);
409 tryCompare(loginList, "currentSession", LightDM.Greeter.defaultSession);