Automation Tests for Sharepoint online Applications

Hi Looking for any recommendations for best practices or experience in automation of Sharepoint online application. Especially the Authentication via SSO.