Exemplo n.º 1
0
        public void TestSignInThroughSteam()
        {
            SeleniumExtensions.ExecuteOnMultipleBrowsers(driver =>
            {
                Console.WriteLine("Retrieving Steam password from environment variable...");

                string steamPassword;
                using (var credential = TestUtil.GetCredentialFromManager("OHADSOFT_STEAM_PASSWORD"))
                {
                    steamPassword = credential.Password;
                }

                Assert.IsNotNull(steamPassword, "The OHADSOFT_STEAM_PASSWORD generic credential must be set in the Windows Credential Manager");

                SignInHelper.SignInThroughSteam(driver, UserConstants.HltbsUser, steamPassword);
                AssertPersonaDetails(driver, UserConstants.HltbsPersonaName, UserConstants.HltbsPersonaAvatarUuid);
            });
        }