GithubHelp home page GithubHelp logo

sauce-demo-testing's People

Contributors

christophperrins avatar

Watchers

 avatar

sauce-demo-testing's Issues

Test-requirement for: Cart - displays items

Summary
From the items which are in the session storage, each item should display beneath the other
How it is going to be tested
Assuring that the number of items is equal to the number selected.
By making sure that the position of each item is beneath the previous item

BUG - Printing to console items selected

Summary
It looks unprofessional to an end user to be using the console for debugging purposes for which they can see

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Open up the console window of the browser
  3. Add an item to the cart on the inventory page
  4. Notice how the id of the item appears in the console

Expected Results
Console should remain empty

Actual Results
Console prints out id's of items clicked


More info

Screenshots
To view screenshot click here

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

Test-requirement for: Cart - continue shopping button

Summary
The continue shopping button should be able to be clicked, whilst keeping the items, such that when the cart icon is re-clicked it will bring the user back to the previous data they head before
How it is going to be tested

  • The user has a number of items in their cart.
  • User clicks continue shopping
  • user clicks cart icon
  • same data has persisted

BUG - Reset app state does not rerender page

Summary
When the reset app state is clicked, it clears out the session storage. However since the webpage in front of you has already loaded using the stored data in the session storage, that means that it needs to be re-rendered to give a true representation of the data you can play around with

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Add an item to the cart on the inventory page
  3. Click the burger button (more options button)
  4. Click reset app state
  5. Notice how the item still says "Remove"
  6. Click the cart icon
  7. No items inside

Expected Results
The item has a button to "Add to cart"

Actual Results
The item has a button to "Remove"


More info

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

Test-requirement for: Checkout complete -

Summary
When the finish button is clicked on the checkout overview it should take you to the checkout complete page

How it is going to be tested
By comparing expected url to actual one

BUG - Social Media links not active

Summary
Social media icons are not interactable.

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Below the products there are three icons to twitter, facebook and linkedin. Click on each of these buttons

Expected Results
A new window/tab should pop up with the respective websites url.

Actual Results
Nothing happens


More info

Screenshots
To view screenshot click here

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

BUG - No automatic login

Summary
User credentials are saved in session memory however not used for automatic login.

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Go to sauce demo homepage

Expected Results
To be redirected to the inventory page

Actual Results
Asks for login details again


More info

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

Test-requirement for: Login - testing responsive design

Summary
Based on the size of the screen the icon should be side by side with the form or underneath it
How it is going to be tested
By grabbing the dimensions of the form and robot image and comparing that they underneath one another

BUG - Not found page not found

Summary
The default not found page has not been overridden to something which would have meaning to a user.

Step To Reproduce

  1. Go to [https://www.saucedemo.com/AnUnknownLocation]

Expected Results
A 404 not found page suggesting a redirection to the user.

Actual Results
XML file appears stating an error.


More info

Screenshots
To view the screenshot click here

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

BUG - Checkout page allows non alpha characters for names

Summary
Checkout page allows numbers in the name.

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Add an item to the cart on the inventory page
  3. Click the cart icon to take you to the cart page
  4. Click checkout and it should take you to checkout page
  5. Enter in "9" into First name, last name and zip code for the form.
  6. Click continue

Expected Results
I expected an error message to say to only allow alpha characters.

Actual Results
It accepted the input.


More info

Screenshots
If applicable, add screenshots to help explain your problem.

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

BUG - Can't change the quantity in cart

Summary
The quantity of an item to purchase cannot be changed on the basket page

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Add an item to the cart on the inventory page
  3. Click the cart icon to take you to the cart page
  4. Change the quantity of the item inside the cart

Expected Results
The quantity to change

Actual Results
The quantity did not change


More info

Screenshots
To view the screenshot click here

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

BUG - cart only persists on single computer

Summary
When adding items to cart, they are only saved to the machine. This means if I shop on my computer then switch to my phone, I must start my shopping all over again.

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Add an item to the cart on the inventory page
  3. Click on the burger button (options button) and logout
  4. Login with username: standard_user and password: secret_sauce on another machine

Expected Results
The cart additions made on the first machine should be visible on the second machine

Actual Results
Cart empty

More info

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

BUG - Can login to user account without password

Summary
Due to the username being saved in session storage, it is possible to change session storage to be another user to then login as that user.

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Change session storage variable "session-username" from "standard_user" to "problem_user"
  3. Go to inventory page

Expected Results
An error to be thrown when trying to access the inventory page as problem_user

Actual Results
Access granted as shown by the change in the images no longer being displayed


More info

Screenshots
To view screenshot click here

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context Try using JavaScript Web Tokens to encrypt the session storage, such that it cannot be changed easily

BUG - Usernames and password visible via Javascript

Summary
It is possible to see the username and password via javascript.

Step To Reproduce

  1. Look in main.js for "VALID_USERNAMES" variable

Expected Results
Authentication to occur on the backend

Actual Results
Authentication occuring on the frontent


More info

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context VALID_USERNAMES=["standard_user","locked_out_user","problem_user","performance_glitch_user"],s.VALID_PASSWORD="secret_sauce"

Test-requirement for: Inventory - Inventory Item Placement

Summary
The number/size of items which appear on the screen should be relative to the viewport size.

How it is going to be tested
Setting the screen to large and then checking the positional dimensions of each item.
Setting the screen to small and then checking the positional dimensions of each item.

Test-requirement for: Inventory - Sort functionality

Summary
There are four settings of sort, each needs to be tested to make sure that it is loading the items in the right way

How it is going to be tested
For name (A to Z) and vice versa, grab the title of each inventory item and making sure that the position of the elements is the same before and after sorting

For low to high and vice versa, grab the price of each inventory item and make sure the numbers increase with each item.

Test-requirement for: Cart - checkout button

Summary
clicking checkout should take you to the first checkout step

How it is going to be tested
By getting the url of the next page and making sure it matches that which its known

Test-requirement for: Login

Summary
Login functionality needs to be tested

How it is going to be tested
It will be tested using acceptable username and passwords, incorrect username and passwords, not acceptable username and passwords, locked out users, problematic users and performance issue users.

BUG - Items in cart are carried between users

Summary
If one user adds items to cart, then when they log out and another user logs in, then they will have the items in their cart of the other users selections

Step To Reproduce

  1. Login with username: standard_user and password: secret_sauce
  2. Add an item to the cart on the inventory page
  3. Go to the login page and login with username: problem_user and password: secret_sauce

Expected Results
An empty cart or a cart from their last shop should be present

Actual Results
The cart of standard_user is now visible to problem_user


More info

Title Description
Browser Chrome Version 80.0.3987.149 (Official Build) (64-bit)
Screen size 1536 x 864
Viewport Size 1519 x 754
Zoom level 100%
OS Microsoft Windows 10 Home 10.0.18362 Build 18362
User Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Additional Context None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.