-
Notifications
You must be signed in to change notification settings - Fork 854
Testing Scratch www
- Test Cases in a PR message should be added to the Test Plans
- The Most Important Workflows automated tests should pass for every PR
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.
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.
- 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
- Some sections will not be clickable if they have no details (and should consequently have no different hover state)
- Going to https://scratch.ly/create, whether signed in or out, should redirect you to the project editor with the Tips window open
- 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
- List of links
- List of languages
- The tips window should be closed
- Share should fail if your email is not confirmed, but the button should exist regardless
- Username in upper left
- Menu should contain:
- Profile
- My Stuff
- Account Settings
- Sign Out
- Discuss Scratch
- Reports (if you made it to the right page, this link should exist to click)
- Menu should contain:
- Profile
- My Stuff
- Account Settings
- Sign Out
- New Scratchers (if you made it to the right page, this link should exist to click)
- New Topic button should exist
- Menu should contain:
- Profile
- My Stuff
- Account Settings
- Sign Out
- New Scratchers (if you made it to the right page, this link should exist to click)
- New Topic button should exist
- Sign In in upper right
- Tips Window opens
- Discuss Scratch
- Discussion Home
- Scratch
- Announcements
- New Scratchers (if you made it to the right page, this link should exist to click)
- New Topic button should not exist