Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Cross Cutting Elements

Kate Mashkina edited this page Nov 21, 2019 · 35 revisions

Footer Tests

Content Types Covered:

All

Test scenarios for Footer for both English and Spanish pages:

  • Verify Footer exists on the page.
  • Verify that Footer Header is correctly displayed for English and Spanish pages
  • For each content type, does the footer appear exactly once?
  • For English content, is the footer in English?(already included)
  • For Spanish content, is the footer in Spanish?(already included)
  • If you take the entire text appearing in the footer, is the length at least 450 characters and less than 800 characters? (You should check English and Spanish to make sure these are "reasonable" numbers.)
  • Does the rendered text contain any instances of the literal "<a"? (The expected answer is no, otherwise, the footer may have been rendered incorrectly.)
  • There was a mention of specific elements which render differently at specific breakpoints. There should be a test for those elements (and only those elements) at each breakpoint.

Public Use Tests

Content Types Covered

  • Article
  • Press Release
  • Blog

Test scenarios:

Navigate to page URL for each content type:

  • Assert Public Use Text is presented on the page.
  • Verify that Public Use text is correctly displayed (English and Spanish pages)
  • Verify that Public Use text size is at least 200 characters and less than 400 characters
  • Assert Content Title is presented in Public Use Text (English and Spanish pages)
  • Assert that Reuse link that appears in Public Use Text is active (English and Spanish pages)

Negative Tests:

  • Verify Public Use Text and Link doesn't appear (URL's with other pages)

Page Options Tests

Content Types Covered for Page Options:

All

Test scenarios for Page Options Control:

  • Verify if the Page Options Control are displayed on pages where they are expected.

Content Types Covered for verifying Font Resizer Present:

Article, Biography,Blog Posts, Cancer Research List Page, Cancer Center, Event, Press Release,PDQ Cancer Info Summary, PDQ Drug Info Summary.

Tests for Font Resizer: (Desktop)

  • Verify if the Font Resizer icon is displayed where it is expected to display at desktop breakpoint.

Tests for Font Resizer: (Tablet)

  • Verify that the font Resizer is NOT displayed when they are NOT expected to display at Tablet breakpoint for the same set of pages that display Fontresizer at Desktop breakpoint.

Tests for Font Resizer: (Mobile)

  • Verify that the font Resizer is NOT displayed when they are NOT expected to display at Mobile breakpoint for the same set of pages that display Fontresizer at Desktop breakpoint.

Content Types Covered for verifying Font Resizer is NOT Present:

Blog Series, CTHP pages, Home and Landing Pages, Mini Landing Pages, Infographic, Video

Tests for Font Resizer NOT Present:

  • Verify that the font Resizer is NOT displayed when they are NOT expected to display on the above Content Types at default breakpoint.

Tests for Print Button: (Desktop)

  • Verify if the Print Button is displayed where it is expected to display at desktop breakpoint.

  • Tests for Print Button: (Tablet)

  • Verify that the Print Button is NOT displayed when they are NOT expected to display at Tablet breakpoint for the same set of pages that display Print Button at Desktop breakpoint.

Tests for Print Button: (Mobile)

  • Verify that the Print Button is NOT displayed when they are NOT expected to display at Mobile breakpoint for the same set of pages that display Print Button at Desktop breakpoint.

Test for Email Button:

  • Verify that the E-mail button is displayed at default breakpoint.

Test for Facebook button:

  • Verify that the Facebook button is displayed at default breakpoint.

Test for Twitter Button:

  • Verify that the Twitter button is displayed at default breakpoint.

Test for Pinterest Button:

  • Verify that the Pinterest button is displayed at default breakpoint.

Simple Date Tests

Updated Date

Content Types Covered

  • Article
  • Press Release
  • Cancer Center
  • Biography

Test scenarios:

  1. Navigate to page URL for each Content Page
  2. Assert Updated Date Label is presented on the page
  3. Assert Updated Date is presented on the page

Negative Tests: 1 Assert Updated date is not present for the URL having no Updated date


Posted Date

Content Types Covered

  • Article
  • Blog
  • Press Release

Test scenarios:

  1. Navigate to page URL for each content type
  2. Assert Posted Date Label is presented on the page (**not applicable for BLOG)
  3. Assert Posted Date is presented on the page Negative Tests:
  4. Assert posted date is not present for the URL having no posted date

Reviewed Date

Content Types Covered

  • Article

Test scenarios:

  1. Navigate to page URL for Article Page
  2. Assert Reviewed Date Label is presented on the page
  3. Assert Reviewed Date is presented on the page Negative Tests:
  4. Assert Reviewed date is not present for the URL having no Reviewed date

Related Resources Tests

Content Types Covered

  • Article - /about-cancer/coping/feelings
  • Press Release - /news-events/press-releases/2018/tmds-aml-risk-chemo
  • Blog - /about-cancer/coping/feelings/relaxation/vitamin-d-supplement-cancer-prevention
  • Cancer Center - /about-cancer/coping/feelings/relaxation/duke-university
  • Bio - /about-cancer/coping/feelings/relaxation/loukissas-jen

Test scenarios:

  • Assert Related Resources section exists on the page
  • Assert Related Resources internal links exists on the page
  • Assert non-zero number of Related Resources internal links are present.
  • Assert all Related Resources internal links have non-blank hrefs.
  • Assert all Related Resources internal link hrefs contain no whitespace. (i.e. no leading/trailing/embedded spaces, tabs, new lines.)
  • Assert all Related Resources external links have “Exit Disclaimer” styling

Negative Tests:

  • Assert no Related Resources section/links appear on the page

Language Toggle Tests

Content Types Covered:

All

Test scenarios for Language Toggle:

  1. Verify Language Toggle is present
  2. Verify Language Tog le is present as 'Espanol' on English pages
  3. Verify Language Toggle is present as 'English' on Espanol pages
  4. Verify that Language Toggle is not present for pages having no translation pages.

Intro Text Tests

Content Types Covered

  • Article
  • Blog

Test scenarios:

  1. Navigate to page URL for each content type
  2. Assert Intro text is presented

Negative Tests:

  1. Navigate to other content type pages and verify Intro text is not present (URL's with other pages)

Left Navigation Tests

Content Types Covered:

All

Test scenarios for Left Nav for both English and Spanish pages:

####Desktop Breakpoint:

  1. Verify Left Navigation on Desktop breakpoint
  2. Verify left navigation Level 1 heading is active page
  3. Verify Level 1 heading can be expanded in to child level of items
  4. Verify Left Navigation heading label matches the expected page title (From data provider)

####Mobile/Tablet Breakpoint:

  1. Verify Section Menu Nav appears ( left nav / tongue on mobile) on Mobile/Tablet breakpoint
  2. Verify mobile navigation Level 1 heading is active page
  3. Verify mobile navigation Level 1 heading can be expanded to child level of items
  4. Verify mobile navigation heading label matches the expected page title (From data provider)

Clone this wiki locally