diff --git a/tests/AlyxPanel_test.m b/tests/AlyxPanel_test.m index 8e5fe356..14a10fe0 100644 --- a/tests/AlyxPanel_test.m +++ b/tests/AlyxPanel_test.m @@ -356,7 +356,7 @@ function test_login(testCase) testCase.assertTrue(testCase.Panel.AlyxInstance.IsLoggedIn); % Check log logPanel = findobj(testCase.hPanel, 'Tag', 'Logging Display'); - testCase.verifyTrue(endsWith(logPanel.String{1}, 'Logged into Alyx successfully as test_user')) + testCase.verifyTrue(endsWith(logPanel.String{end}, 'Logged into Alyx successfully as test_user')) labels = findobj(testCase.Parent, 'Style', 'text'); % Check all components enabled testCase.verifyEmpty(findobj(testCase.Parent, 'Enable', 'off'))