Exemple #1
0
        public void Tag_Search_Is_Working()
        {
            var currentBlogPosts = HomePage.GetCurrentBlogPosts();
            var blogPostTitle    = currentBlogPosts.First();

            HomePage.GoToBlogPost(blogPostTitle);
            var tags = BlogPostPage.GetTags();

            BlogPostPage.GoToTag(tags.First());

            Assert.IsTrue(ArchivePage.GetAllBlogPosts().Contains(blogPostTitle));
        }
Exemple #2
0
        public void All_BlogPosts_Are_Available()
        {
            foreach (var blogPost in DataToValidate.BlogPosts)
            {
                var url = $"{AppConfig.RootUrl}{blogPost.PermalinkId}";
                Navigation.GoToUrl(url);

                Assert.IsTrue(BlogPostPage.IsAt(blogPost.Title));

                if (blogPost.Tags == null || !blogPost.Tags.Any())
                {
                    continue;
                }

                var tags = BlogPostPage.GetTags();
                Assert.IsTrue(blogPost.Tags.SequenceEqual(tags));
            }
        }
Exemple #3
0
        public void All_BlogPosts_Are_Available()
        {
            foreach (var blogPost in DataToValidate.BlogPosts)
            {
                var url = $"{AppConfig.RootUrl}{blogPost.PermalinkId}";
                Navigation.GoToUrl(url);

                Assert.IsTrue(BlogPostPage.IsAt(blogPost.Title), $"Blog post not found: {blogPost.Title}");

                if (blogPost.Tags == null || !blogPost.Tags.Any())
                {
                    continue;
                }

                var tags = BlogPostPage.GetTags().ToList();

                Assert.IsTrue(blogPost.Tags.SequenceEqual(tags),
                              $"Tags did not match for blog post: {blogPost.Title}, Tags: {string.Join(" ", tags)}");
            }
        }