Merge "Add functional tests for desktop mode scenario tests." into main