Skip to content

Testing Scratch www

jwzimmer edited this page Jun 1, 2016 · 78 revisions

Table of Contents

Testing Pages for Developers

Testing Guide for Bugfixes

Testing Checklist

Testing Conventions

Test Process & Automated Testing

  • Test Cases in a PR message should be added to the Test Plans
  • The Most Important Workflows automated tests should pass for every PR

Automated Tests

Locations

Conventions

Test Plan

Scratch-www does not have all of the back-end behaviour for the later steps in these test cases. Most of that code lives on scratchr2. For example, you should be able to access the log-in fields via scratch-www and you should be able to press the Sign In button, but the actual authentication is handled via scratchr2. For that reason, test cases here focus mainly on interacting with the elements on the homepage and in the navigation bar, and use an incomplete set of steps after that first interaction to verify that the interaction was successful - but they don't cover the full range of behaviour beyond that initial interaction. That behaviour is covered in test plans for scratchr2 and elsewhere.

Most Important Workflows/ Test Cases

These are the workflows we will automate first and which will be run most often. The idea is that they won't ever give "false positives", because if the tests are broken they need to be updated immediately, and if the test fails, the new commit should not be checked in.

All Test Cases: Conference Site

Login on homepage should still work

  • You don't have to sign in to the conference site, but you should still be able to sign in on the homepage
  • Homepage should still detect if you're logged in

The /conference/schedule page should include tabs for different days of the conference

The schedule should have clickable schedule sections that each link to a details page
  • Some sections will not be clickable if they have no details (and should consequently have no different hover state)
The /conference/:id/details page should show info on conference sessions
The "back to full schedule" link should bring you back to the day the detailed event occurs on

All Test Cases: Homepage

/create URL

  • Going to https://scratch.ly/create, whether signed in or out, should redirect you to the project editor with the Tips window open

Homepage

Project Rows
  • Welcome to Scratch
  • Scratch News
  • Featured Projects
  • Featured Studios
  • Projects Curated By X
  • Scratch Design Studio
  • Recently Shared Projects
  • What the Community is Remixing
  • What the Community is Loving
Should be able to click a project
Should be able to use nav arrows in the row
Footer Links
  • List of links
Should be able to click the link
Language
  • List of languages
Choose a language

When signed in...

Create should take you to the editor
  • The tips window should be closed
Should be able to click Share button
    • Share should fail if your email is not confirmed, but the button should exist regardless
  • Username in upper left
As a mod...
Clicking on username in top right should open dropdown menu
  • Menu should contain:
    • Profile
    • My Stuff
    • Account Settings
    • Sign Out
Discuss should take you to the Forums > Reports
  • Discuss Scratch
    • Reports (if you made it to the right page, this link should exist to click)
As a New Scratcher...
Clicking on username in top right should open dropdown menu
  • Menu should contain:
    • Profile
    • My Stuff
    • Account Settings
    • Sign Out
Profile
My Stuff
Account Settings
Sign Out
Discuss should take you to the Forums > New Topic Button
  • New Scratchers (if you made it to the right page, this link should exist to click)
    • New Topic button should exist
As a Scratcher...
Clicking on username in top right should open dropdown menu
  • Menu should contain:
    • Profile
    • My Stuff
    • Account Settings
    • Sign Out
Profile
My Stuff
Account Settings
Sign Out
Discuss should take you to the Forums > New Topic Button
  • New Scratchers (if you made it to the right page, this link should exist to click)
    • New Topic button should exist

When signed out...

Join Scratch should open a dialogue box and allow you to register a new account
Sign In should open a dropdown menu and allow you to log in to Scratch
Create should take you to the editor
  • Sign In in upper right
  • Tips Window opens
Discuss should take you to the Forums
  • Discuss Scratch
    • Discussion Home
    • Scratch
Welcome to Scratch > New Scratchers > No button
  • Announcements
  • New Scratchers (if you made it to the right page, this link should exist to click)
    • New Topic button should not exist

Explore should take you to the Explore page

About link

Help link

Search bar

Message icon (envelope)

My Stuff icon (folder)