public void CreatePlaylist_AddVideo_Success() { using (var driver = new ChromeDriver("./")) { var youtify = new YoutifyPageObject(driver); youtify.OpenSite(); youtify.Login(Globals.USER_EMAIL, Globals.USER_PASSWORD); Assert.True(youtify.SignOutButton.IsVisible()); youtify.TryClearPlaylists(); // Create a playlist youtify.AddPlaylistButton.Click(); youtify.AddPlaylistInput.SendKeys("Favorites"); youtify.AddPlaylistInput.Submit(); youtify.WaitUntilLoads(); Assert.Equal(1, youtify.Playlists.Count); // Add video to a playlist youtify.VideoOptions.First().Click(); youtify.VideoPlaylistsToAdd.First().Click(); youtify.WaitSecs(1); youtify.Playlists.First().Click(); youtify.WaitSecs(1); Assert.Equal(1, youtify.CurrentVideos.Count); youtify.TryClearPlaylists(); } }
public void GoogleAuth_Success() { using (var driver = new ChromeDriver("./")) { var youtify = new YoutifyPageObject(driver); youtify.OpenSite(); youtify.Login(Globals.USER_EMAIL, Globals.USER_PASSWORD); Assert.True(youtify.SignOutButton.IsVisible()); youtify.Logout(); Assert.True(youtify.SignInButton.IsVisible()); } }