Home Route UI Test Cases for Nxt Watch

Home Route UI Tests
43
0
43
Navigation and Video Lists

The page should consist of at least two HTML list items. The navItemsList and videosList received from the response should be rendered using a unique key as a prop for each nav item and video item respectively.

0 ms 
Unauthenticated User Navigation

When “/” is provided as the URL by an unauthenticated user, the page should be navigated to the Login Route.

0 ms 
Authenticated User Navigation

When “/” is provided as the URL by an authenticated user, the page should be navigated to the Home Route.

0 ms 
Header Logo

The Home Route should consist of an HTML image element in the Header with the alt attribute value as “website logo” and src as the given logo URL.

0 ms 
Header Logo Link

The Home Route should consist of an HTML image element in the Header with the alt attribute value as “website logo” and src as the given logo URL wrapped with Link from react-router-dom.

0 ms 
Theme Button

The Home Route should consist of an HTML button element with the data-testid attribute value as “theme” in the Header.

0 ms 
Profile Image

The Home Route should consist of an HTML image element in the header with the alt attribute value as “profile” and src as the value of the given profile image URL.

0 ms 
Logout Button

The Home Route should consist of an HTML button element with text content as “Logout” in the Header.

0 ms 
Navigation and Video Lists

The Home Route should consist of at least two HTML unordered list elements, navItemsList and videosList, received from the response to display nav items and video items.

0 ms 
Home Link

The Home Route should consist of “Home” text wrapped with Link from react-router-dom.

0 ms 
Trending Link

The Home Route should consist of “Trending” text wrapped with Link from react-router-dom.

0 ms 
Gaming Link

The Home Route should consist of “Gaming” text wrapped with Link from react-router-dom.

0 ms 
Saved Videos Link

The Home Route should consist of “Saved videos” text wrapped with Link from react-router-dom.

0 ms 
Contact Us

The Home Route should consist of an HTML paragraph element with text content starting with “CONTACT US” in the sidebar.

0 ms 
Facebook Logo

The Home Route should consist of an HTML image element with the alt attribute value as “facebook logo” and src as the value of the given facebook logo URL.

0 ms 
Twitter Logo

The Home Route should consist of an HTML image element with the alt attribute value as “twitter logo” and src as the value of the given twitter logo URL.

0 ms 
LinkedIn Logo

The Home Route should consist of an HTML image element with the alt attribute value as “linked in logo” and src as the value of the given linked in logo URL.

0 ms 
Enjoy Message

The Home Route should consist of an HTML paragraph element with text content starting with “Enjoy! Now to see your channels and recommendations!” in the sidebar.

0 ms 
Nxt Watch Logo in Banner

The Home Route should consist of an HTML image element with the alt attribute value as “nxt watch logo” and src as the value of the given nxt watch logo URL should be displayed in the banner.

0 ms 
Premium Banner Text

The Home Route should consist of an HTML paragraph element with text content starting with “Buy Nxt Watch Premium” in the banner.

0 ms 
Get It Now Button

The Home Route should consist of an HTML button element with text content as “GET IT NOW” in the banner.

0 ms 
Close Button

The Home Route should consist of an HTML button element with data-testid “close” should be displayed in the banner.

0 ms 
Banner Container

The Home Route should consist of a styled HTML container element with data-testid as “banner” and background image URL as the URL provided for the banner.

0 ms 
Banner Container

The Home Route should consist of a styled HTML container element with data-testid as “banner” and background image URL as the URL provided for the banner.

0 ms 
Search Input

The Home Route should consist of an HTML input element with the type attribute value as “search”.

0 ms 
Search Button

The Home Route should consist of an HTML button element with the data-testid attribute value as “searchButton”.

0 ms 
HTTP GET Request on Open

When the Home Route is opened, an HTTP GET request should be made to homeVideosApiUrl.

0 ms 
Loader Display

When the Home Route is opened, an HTML container element with the data-testid attribute value as “loader” should be displayed while the HTTP GET request is in progress.

0 ms 
Video Thumbnails

When the HTTP GET request in the Home Route is successful, the page should consist of HTML image elements with the alt attribute value as “video thumbnail” and src as the value of the key “thumbnail_url” of the video item from the videosResponse.

0 ms 
Channel Logos

When the HTTP GET request in the Home Route is successful, the page should consist of HTML image elements with the alt attribute value as “channel logo” and src as the value of the key “profile_image_url” in the channel inside the video item from the videosResponse.

0 ms 
Video Titles

When the HTTP GET request in the Home Route is successful, the page should consist of HTML paragraph elements with text content as the value of the key “title” in each item from the videosResponse.

0 ms 
Channel Names

When the HTTP GET request in the Home Route is successful, the page should consist of HTML paragraph elements with text content as the value of the key “name” in each item from the videosResponse.

0 ms 
View Counts

When the HTTP GET request in the Home Route is successful, the page should consist of HTML paragraph elements with text content as the value of the key “view_count” in each item from the videosResponse.

0 ms 
Published Dates

When the HTTP GET request in the Home Route is successful, the page should consist of HTML paragraph elements with text content as the value of the key “published_at” in each item from the videosResponse.

0 ms 
Search Input Display

When a non-empty value is provided in an HTML input element for search, that text should be displayed in the HTML input element.

0 ms 
Search Functionality

When a value is provided in the HTML input element for search and the “Search” button is clicked, an HTTP GET request should be made with the value provided in the HTML input element as the value to query parameter “search”.

0 ms 
Video Item Link

The Home Route should consist of a Video item wrapped with Link from react-router-dom.

0 ms 
Video Item Details Navigation

When a Video Item is clicked in the Home Route, the page should be navigated to the Video Item Details route with “/videos/:id” in the URL path.

0 ms 
Empty Videos List

When the HTTP GET request made to homeVideosApiUrl returns the videos list as empty, the page should consist of the HTML image element with the alt attribute value as “no videos” and src as the given “No Videos view image URL”.

0 ms 
No Search Results Message

When the HTTP GET request made to homeVideosApiUrl returns the videos list as empty, the page should consist of the HTML main heading element with text content as “No Search results found”.

0 ms 
Search Suggestion

When the HTTP GET request made to homeVideosApiUrl returns the videos list as empty, the page should consist of the HTML paragraph element with text content as “Try different key words or remove the search filter”.

0 ms 
Retry Button

When the HTTP GET request made to homeVideosApiUrl returns the videos list as empty, the page should consist of the HTML button element with text content as “Retry”.

0 ms 
Retry Functionality

When the HTTP GET request made to homeVideosApiUrl returns the videos list as empty and the “Retry” button is clicked, an HTTP GET request should be made to homeVideosApiUrl.

0 ms