A Practical Demonstration for This Website Test Cases
Navbar Test Cases:
- Check Dropdowns on Hover.
- Verify Click ability of Navbar Text.
- Ensure Navigation to Home Option.
- Check Dark and Light Mode Toggle.
- Verify Search Functionality.
- Confirm Post Content Adapts to Dark/Light Mode.
Footer Test Cases:
- Check Click ability of Tooltip Text.
- Verify Functionality of "Learn More" Links.
- Ensure Subscription Feature Works.
- Confirm Post Content Adapts to Dark/Light Mode.
Main Content Test Cases:
- Verify Visibility of Latest Post.
- Check Mouse Hover Effect on All Posts.
- Confirm Post Page Click ability and Navigation.
- Ensure Post Content Adapts to Dark/Light Mode.
- Verify Google Translator Integration.
- Check Global Time Clock Display.
- Confirm Post Pagination.
- Verify Recommendation Posts on Sidebar.
- Ensure Recommendation Post Click Navigates to Post Page.
- Check Comment Functionality.
- Verify Next and Previous Post Navigation.
- Confirm Related Post Option Functionality.
- Check Table of Contents Click and Auto-Scrolling.
- Verify Upper Arrow Functionality.
- Ensure Related Post Click Navigates to Post Page.
Cucumber Format Test Cases:
Feature: Testing Navbar FunctionalityScenario: Check Dropdowns on HoverGiven the user is on the websiteWhen the user hovers over the navbar dropdownsThen all dropdown menus should expand without delay or flickeringScenario: Verify Click ability of Navbar TextGiven the user is on the websiteWhen the user clicks on each text element in the navbarThen each text element should navigate to the respective page without errorsScenario: Ensure Navigation to Home OptionGiven the user is on the websiteWhen the user clicks on the home option in the navbarThen the user should be navigated to the homepage without errorsScenario: Check Dark and Light Mode ToggleGiven the user is on the websiteWhen the user toggles between dark and light mode in the navbarThen the site theme should change accordingly without issuesScenario: Verify Search FunctionalityGiven the user is on the websiteWhen the user enters a search query in the navbar search input fieldAnd clicks on the search buttonThen the search results should be displayed and clickableScenario: Confirm Post Content Adapts to Dark/Light ModeGiven the user is on a post pageWhen the user toggles between dark and light modeThen the post content should adapt accordingly for readabilityFeature: Testing Footer FunctionalityScenario: Check Click ability of Tooltip TextGiven the user is on the websiteWhen the user hovers over elements in the footer with tooltip textAnd clicks on the tooltip textThen the tooltip text should perform the expected action without issuesScenario: Verify Functionality of "Learn More" LinksGiven the user is on the websiteWhen the user clicks on each "Learn More" link in the footerThen each link should navigate to the respective page without errorsScenario: Ensure Subscription Feature WorksGiven the user is on the websiteWhen the user enters a valid email address in the subscription input fieldAnd clicks on the "Subscribe" buttonThen the subscription should be processed successfullyScenario: Confirm Post Content Adapts to Dark/Light ModeGiven the user is on a post pageWhen the user toggles between dark and light modeThen the post content in the footer should adapt accordingly for readabilityFeature: Testing Main Content FunctionalityScenario: Verify Visibility of Latest PostGiven the user is on the homepageThen the latest post should be visibleScenario: Check Mouse Hover Effect on All PostsGiven the user is on the homepageWhen the user hovers over each postThen each post should display a hover effectScenario: Ensure Post Page Click ability and NavigationGiven the user is on the homepageWhen the user clicks on each postThen the user should be navigated to the respective post page without errorsScenario: Confirm Post Content Adapts to Dark/Light ModeGiven the user is on a post pageWhen the user toggles between dark and light modeThen the post content should adapt accordingly for readabilityScenario: Verify Google Translator IntegrationGiven the user is on a post pageWhen the user uses the Google Translator integration to translate the postThen the post content should be translated correctly into the selected languageScenario: Check Global Time Clock DisplayGiven the user is on the homepage or a post pageThen the global time clock should display the correct current timeScenario: Confirm Post PaginationGiven the user is on the homepage or a post list pageWhen the user clicks on the pagination linksThen the pagination should work correctly, allowing the user to navigate through different pages of postsScenario: Verify Recommendation Posts on SidebarGiven the user is on a post pageThen recommendation posts should be displayed correctly on the sidebarScenario: Ensure Recommendation Post Click Navigates to Post PageGiven the user is on a post pageWhen the user clicks on each recommendation post on the sidebarThen the user should be navigated to the respective post page without errorsScenario: Check Comment FunctionalityGiven the user is on a post pageWhen the user enters a comment and submits itThen the comment should be submitted successfully and displayed in the comment sectionScenario: Verify Next and Previous Post NavigationGiven the user is on a post pageWhen the user clicks on the 'Next Post' and 'Previous Post' links/buttonsThen the user should be navigated to the next or previous post page without errorsScenario: Confirm Related Post Option FunctionalityGiven the user is on a post pageThen related posts should be displayed correctly in the designated sectionScenario: Check Table of Contents Click and Auto-ScrollingGiven the user is on a post page with a table of contentsWhen the user clicks on each link in the table of contentsThen the page should scroll automatically to the respective section of the articleScenario: Verify Upper Arrow FunctionalityGiven the user is on the homepage or a post pageWhen the user scrolls down to the bottom of the pageAnd clicks the upper arrow icon on the right side of the screenThen the page should scroll smoothly back to the topScenario: Ensure Related Post Click Navigates to Post PageGiven the user is on a post pageWhen the user clicks on each related postThen the user should be navigated to the respective post page without errors
Traditional Cases:
Feature | Scenario | Steps | Expected Result |
---|---|---|---|
Navbar Functionality | Verify Drop Down Menus on Hover | Hover over each menu item in the navigation bar that has a drop-down menu. | Each drop-down menu should appear correctly, displaying all its options. |
Navbar Functionality | Verify All Text in Nav Bar is Clickable | Click on each text item in the navigation bar. | Each text item should be clickable and should redirect to the respective page without errors. |
Navbar Functionality | Verify Home Option in Nav Bar | Click on the 'Home' option in the navigation bar. | The user should be redirected to the homepage. |
Navbar Functionality | Verify Dark and Light Mode Toggle in Nav Bar | Click on the dark mode toggle in the navigation bar. | The site should switch to dark mode. Click on the light mode toggle. The site should switch back to light mode. |
Navbar Functionality | Verify Search Functionality in Nav Bar | Enter a search query in the search bar. Press 'Enter' or click the search icon. | The user should be redirected to the search results page, displaying relevant results for the query. |
Navbar Functionality | Verify Post Content Adapts to Dark and Light Mode | Navigate to a blog post page. Toggle the site to dark mode using the navigation bar. Toggle the site back to light mode. | The post content should adapt correctly to both dark and light modes, ensuring readability and proper styling in each mode. |
Footer Functionality | Verify Tooltip Text Clickability in Footer | Hover over any elements in the footer that display tooltip text. Click on the tooltip text. | The tooltip text should be clickable and should either navigate to a new page or perform the expected action without any issues. |
Footer Functionality | Verify "Learn More" Links in Footer | Scroll down to the footer. Click on each "Learn More" link. | Each "Learn More" link should be clickable and should navigate to the correct respective page. |
Footer Functionality | Verify Subscribe Functionality in Footer | Scroll down to the footer. Enter a valid email address in the subscription input field. Click the 'Subscribe' button. | The user should see a success message indicating successful subscription, and the email should be added to the subscription list. |
Footer Functionality | Verify Subscribe with Invalid Email | Scroll down to the footer. Enter an invalid email address in the subscription input field. Click the 'Subscribe' button. | The user should see an error message indicating that the email address is invalid, and the subscription should not be processed. |
Footer Functionality | Verify Post Content Adaptation in Footer for Dark and Light Mode | Navigate to the homepage. Toggle the site to dark mode. Scroll down to the footer and observe the content. Toggle the site to light mode. Scroll down to the footer and observe the content. | The footer content should adapt correctly to both dark and light modes, ensuring readability and proper styling in each mode. |
Main Content Functionality | Verify Visibility of Latest Post | Navigate to the homepage. Verify the section where the latest post is displayed. | The latest post should be visible at the top of the post list or in the designated latest post section. |
Main Content Functionality | Verify Mouse Hover Effect on Posts | Navigate to the homepage. Hover the mouse over each post. | Each post should display a hover effect (e.g., change in background color, box shadow, or other visual indicators). |
Main Content Functionality | Verify Clickability and Navigation to Post Page | Navigate to the homepage. Click on each post. | Each post should be clickable, and clicking on it should navigate to the respective post page without errors. |
Main Content Functionality | Verify Post Content Adaptation for Dark and Light Mode | Navigate to a post page. Toggle the site to dark mode. Verify the post content's appearance. Toggle the site to light mode. Verify the post content's appearance. | The post content should adapt correctly to both dark and light modes, ensuring readability and proper styling. |
Main Content Functionality | Verify Google Translator Integration | Navigate to a post page. Use the Google Translator integration to translate the post into another language. | The post content should be translated correctly into the selected language. |
Main Content Functionality | Verify Global Time Clock Display | Navigate to the homepage or a post page where the global time clock is displayed. Verify the time displayed on the clock. | The global time clock should display the correct current time. |
Main Content Functionality | Verify Post Pagination Functionality | Navigate to the homepage or a post list page. Click on the pagination links (next, previous, page numbers). | The pagination should work correctly, allowing the user to navigate through different pages of posts. |
Main Content Functionality | Verify Recommendation Posts on Right Sidebar | Navigate to a post page. Verify the section where recommendation posts are displayed on the right sidebar. | The recommendation posts should be displayed correctly on the right sidebar. |
Main Content Functionality | Verify Clickability and Navigation of Recommendation Posts | Navigate to a post page. Scroll down to the recommendation posts section. Click on each recommendation post on the right sidebar. | Each recommendation post should be clickable, and clicking on it should navigate to the respective post page. |
Main Content Functionality | Verify Comment Functionality on Post Page | Navigate to a post page. Scroll down to the comment section. Enter a comment and submit it. | The comment should be submitted successfully and displayed in the comment section. |
Main Content Functionality | Verify Comment Functionality with Invalid Data | Navigate to a post page. Enter invalid data in the comment section (e.g., empty comment, invalid email). Submit the comment. | An error message should be displayed, indicating the issue with the entered data. |
Main Content Functionality | Verify Next and Previous Post Navigation | Navigate to a post page. Click on the 'Next Post' and 'Previous Post' links/buttons. | The user should be navigated to the next or previous post page without errors. |
Main Content Functionality | Verify Related Posts Section | Navigate to a post page. Scroll down to the related posts section. | Related posts should be displayed correctly in the designated section. |
Main Content Functionality | Verify Table of Contents Functionality | Navigate to a post page with a table of contents. Click on each link in the table of contents. | The page should scroll automatically to the respective section of the article. |
Main Content Functionality | Verify Upper Arrow Scroll to Top Functionality | Navigate to the homepage or a post page. Scroll down to the bottom of the page. Click the upper arrow icon on the right side of the screen. | The page should scroll smoothly back to the top. |
Main Content Functionality | Verify Clickability and Navigation of Related Posts | Navigate to a post page. Scroll down to the related posts section. Click on each related post. | Each related post should be clickable, and clicking on it should navigate to the respective post page. |