@@ -409,7 +409,23 @@ StyledItem {
409409 waitForRendering(view);
410410 }
411411
412− function test_tease_data() {
412+ function test_changingSessionSticksToUser() {
413+ LightDM.Sessions.mock.sessionMode = "full";
414+ var loginList = findChild(view, "loginList");
415+ var fakeSessionName = "ASessionWillNeverBeCalledThis";
416+
417+ compare(LightDM.Sessions.count > 1, true);
418+ compare(loginList.currentSession != fakeSessionName, true);
419+
420+ LightDM.Users.mock.sessionName = fakeSessionName;
421+ tryCompare(loginList, "currentSession", fakeSessionName);
422+
423+ // Force a model reset
424+ LightDM.Users.mock.userMode = "single";
425+ LightDM.Users.mock.userMode = "full";
426+ }
427+
428+ /*function test_tease_data() {
413429 return [
414430 {tag: "locked", x: 0, offset: 0, count: 0, locked: true},
415431 {tag: "left", x: 0, offset: 0, count: 1, locked: false},
@@ -744,6 +760,6 @@ StyledItem {
744760
745761 view.showPrompt("", true, true);
746762 verify(promptField.activeFocus);
747− }
763+ }*/
748764 }
749765}