nciocpl / cgov-digital-platform-qa Goto Github PK
View Code? Open in Web Editor NEWQA Automation framework for the Cancer Gov Digital Platform
QA Automation framework for the Cancer Gov Digital Platform
Commit bfd3a90 modifies the language toggle test data (test-data/languagetoggle-data.xlsx
) to expect the word "Spanish" in the language toggle instead of "Español".
This is because the language toggle currently displays the incorrect text. After NCIOCPL/cgov-digital-platform#1541 is resolved, the test data should be switched back.
Depends on Issue #
Content Title/H1:
Negative Tests:
pretty-url
Depends on Issue #
#Requirement Reference
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Pretty-URL
Images and infographics have an "Accessible Text Version" field containing a plain-text description of the image's content. When this field is set, and the image is used as an article's Lead Image, the image is rendered with a longdesc
attribute which retrieves the text. For infographics, this attribute is always rendered when the field is set.
The language toggle test data only checks the language toggle for Article, Cancer Info Summary, Blog and Press Release in English, and only checks Press Release in Spanish.
This should be expanded to cover all content types in both English and Spanish.
Content Type: Press Release in English with lead image with credit, caption, alt text
Live Site URL: https://www.cancer.gov/news-events/press-releases/2018/melanoma-immunotherapy-predictor
Article - http://ncigovcdstg.prod.acquia-sites.com/about-cancer/coping/feelings/relaxation
Blog - #872 - http://ncigovcdstg.prod.acquia-sites.com/news-events/press-releases/2019/deep-learning-cervical-cancer-screening
Press Release - http://ncigovcdstg.prod.acquia-sites.com/about-cancer/coping/feelings/relaxation/hpv-vaccine-presidents-cancer-panel-improving-uptake
Negative Tests:
Negative tests for PDQ Cancer Info Summary, PDQ Drug Info Summary and other content types having no Promotional image:
Depends on Issue #
##Requirement Reference
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Promotional-Image
1.Navigate to page URL for each content type
2.Verify that the Citation Section is present
3.Verify that the Citation Header is visible
4.Verify that the Citation Text is correct
5.Verify that the Citation Text length is correct (within a specified range) for each Citation
6.Verify that the Pub Med link Exists for Citations
7.Verify that the PubMed link point to PubMed URL
Negative Tests for Citations:
Pre-requisites
Depends on Issue #
This document records the detailed test plan for the quality assurance effort necessary to validate the final functionality of CancerGov Digital Platform migration to Drupal CMS.
The Test Approach presents the overall strategy for verifying the requirements to be tested.
The major testing objectives are:
• Functional Testing to ensure that the CancerGov Digital Platform is developed as per the scope captured in respective User Stories, Annotated Wireframes
• Define the test cases for the stories within that iteration
• Test the stories being implemented during that iteration
• Test Scripts preparation for automation regression testing
Verify Cross-Cutting Elements on pages:
Verify common UI elements on content type pages:
This testcases was combined and Completred in:
Add Test data for Blog Page and Press Release to Lead image test data sheet once the issue#1574 for empty p tags for Image caption is resolved.
Negative tests for Cancer center, Biography or any other content type having no lead image:
1.The system shall display the mobile menu when user selects the mobile menu icon.
2.The system shall display the mobile menu as a fly out canvas.
3.The system shall allow users to close the mobile menu using a swipe gesture for tablet and mobile, or by clicking on the menu button
4.The system shall display the site banner above the mobile menu
5.The system shall display the same menu sections as on desktop (no more than 3 levels deep)
6.The system shall display expand/collapse options next to navigation labels on mobile
7.The system shall display a minus (-) next to a navigation label if it is currently expanded to display its child items in the mobile menu.
8.The system shall display a plus (+) next to a navigation label that section has child items beneath the level 1 heading
9.The system shall expand its corresponding section and display only the child items within that section when user selects the +
10.The system shall not display plus(+)/minus(-) sign next to a navigation label if it has no children to display in the mobile menu.
11.The system shall display the +/- options and the navigation label as separate and distinct touch areas.
12.The system shall load the page a user selects when the user touches a navigation label.
13.The system shall allow users to expand (+) or collapse (-) a section on touch.
14.The system shall show the expand and collapse with a sliding down and sliding up animation, respectively.
15.The system shall not allow a user to expand more than one sibling section at a time.
16.The system shall collapse any sections that are currently expanded if the user selects the expand option for a sibling section.
17.The system shall allow the user to collapse the active path when a sibling section is expanded
Depends on Issue #
Negative Tests:
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Vocabularies-Site-Sections
####Desktop Breakpoint
Browser Title:
Negative Tests:
Content Type: Blog post with Lead Image with credit, caption, alt text
Live Site URL: https://www.cancer.gov/news-events/cancer-currents-blog/2019/transition-lowy-nci-acting-director
All currently existing blog posts with "Spanish" actually contain English text.
The goal of this ticket is to either locate or create a blog series containing Spanish data and at least one post with the Intro Text field and add it to the Intro Text test data.
Browser drivers tend to be tied to specific versions of the browser. A mechanism is needed to report when they aren't in sync.
One possible solution is for the test driver to download the driver.
Depends on Issue #
###Requirement Reference
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Feature-Card-Description
Selenium does not expose functionality to examine HTTP status codes (or much of anything else that low level). This prevents us from creating tests to verify redirects, HTTP headers, etc.
Proposed solution:
Create an HttpProtocolPage
class, similar to PageObjectBase
to request a URL and expose the desired information.
Negative Tests:
1 Assert Updated date is not present for the URL having no Updated date
Article, Biography, Blog Post, Cancer Research List Page, Cancer Center, Event, Press Release, PDQ Cancer Info Summary, Blog Series, CTHP, Home & Landing Page, Mini Landing Page, Infographic, Video
-[ ] 1. Verify that the Print Preview App shows up on clicking the Print icon on the Page Options.
-[ ] 2. Verify that the pop up for Email appears on clicking the Email icon
-[ ] 3.Verify that the Email icon points to the href.
-[ ] 4. Verify that the pop up appears on clicking the Facebook icon.
-[ ] 5.Verify that the pop up appears on clicking the Twitter icon.
-[ ] 6.Verify that the browser title displays in the Twitter pop up.
-[ ] 7. Verify that the pop up for Pinterest appears on clicking the Pinterest icon
Depends on Issue #1551
Article
Press Release
Cancer Center
Biography
Event
Mini Landing Page
Home & Landing Page
Cancer Type Home Pages
Blog Landing Page (Blog Series)
Blog Posts
Infographic
Cancer Reserach List
Video
File (???)
Depends on Issue #
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Search-Engine-Restrictions
This covers the automation of the footer - see details:
https://github.com/NCIOCPL/cgov-digital-platform-qa/wiki/Cross-Cutting-Elements#footer
Requirement Reference for Font Resizers:
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Page-Options
# Pre-requisites
Test content pages are created
# Content Types Covered for Page Options:
All
**#Steps for Page Options Control: **
# 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)
Tests for Font Resizer: (Tablet)
Tests for Font Resizer: (Mobile)
**Test to veify that Font Resizer is NOT displayed on the following Content Types:
Blog Series, CTHP pages, Home and Landing Pages, Mini Landing Pages, Infographic, Video
Tests for Print Button: (Desktop)
Tests for Print Button: (Tablet)
Tests for Print Button: (Mobile)
Test for Email Button:
1.Verify that the E-mail button is displayed at default breakpoint.
Test for Facebook button:
1.Verify that the Facebook button is displayed at default breakpoint.
Test for Twitter Button:
1.Verify that the Twitter button is displayed at default breakpoint.
Test for Pinterest Button:
1.Verify that the Pinterest button is displayed at default breakpoint.
All
Depends on Issue #
Depends on Issue #
Content Type: Article in Spanish with lead image with credit, caption, alt text
Live Site URL: https://www.cancer.gov/espanol/cancer/tratamiento/efectos-secundarios
All pages except Home and Landing Pages
Content Type: Press Release in Spanish with lead image with credit, caption, alt text
Live Site URL: https://www.cancer.gov/espanol/noticias/comunicados-de-prensa/2018/llc-ibrutinib-estudio
Related resources can include links to files, infographics, and videos.
Negative Tests:
Depends on Issue #
##Requirement Reference
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Syndication-Keywords
Content Type: Infographic
Displays in:
Negative Tests for List Descriptions:
###Depends on
###Requirement Reference
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#List-Description
Content Type: Article with lead image with credit, caption, alt text
Live Site URL: https://www.cancer.gov/about-cancer/treatment/side-effects/
Depends on Issue #
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Card-Title
Depends on Issue #
##Requirement Reference
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Content-Dates
Navigate to page URL for each content type:
Negative Tests:
All
Reference: NCIOCPL/cgov-digital-platform#1551
Depends on Issue #NCIOCPL/cgov-digital-platform#197
#NCIOCPL/cgov-digital-platform#1509
Depends on Issue #
https://github.com/NCIOCPL/cgov-digital-platform/wiki/Common-Fields#Body
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.