sauce-demo-testing's People
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
- Login with username: standard_user and password: secret_sauce
- Open up the console window of the browser
- Add an item to the cart on the inventory page
- 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
- Login with username: standard_user and password: secret_sauce
- Add an item to the cart on the inventory page
- Click the burger button (more options button)
- Click reset app state
- Notice how the item still says "Remove"
- Click the cart icon
- 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 page one - firstname, last name and postal code should be fillable
Summary
The user should be able to fill out their first and last name as well as their postal code
How it is going to be tested
By filling out appropriate data in the correct boxes
By using alpha-numeric data for all boxes
By using alpha characters only for the zip and postal code
By putting in no information in one of the boxes
By submitting via click
By submitting via enter key
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
Test-requirement for: Inventory - Clicking an "Add to cart" on an item modifies the cart count
Summary
Clicking an "Add to cart" on an item modifies the cart count
How it is going to be tested
The red circle with an item in it should increase by one with every item's "ADD TO CART" button clicked.
BUG - Social Media links not active
Summary
Social media icons are not interactable.
Step To Reproduce
- Login with username: standard_user and password: secret_sauce
- 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 |
Test-requirement for: Login - No username or password
Summary
Details entered should be checked to see if there is a value present
How it is going to be tested
Enter an empty username
Enter an empty password
Test-requirement for: Checkout One - cancel button
Summary
The cancel button should take you back to your cart
How it is going to be tested
By clicking the cancel button
By using backwards redirect
BUG - No automatic login
Summary
User credentials are saved in session memory however not used for automatic login.
Step To Reproduce
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
Add testing Report
Add report functionality using Extent Reports
Test-requirement for: Inventory - Clicking an "Add to cart" on an item adds it to the session storage list of ids
Summary
Adding "add to cart" should add it to the session storage
How it is going to be tested
By reading the session storage before and after clicked and checking to see if the id appears inside
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
- 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 |
Test-requirement for: Checkout - payment calculation
Summary
Payment needs to be calculated before finished order can be sent off.
How it is going to be tested
By grabbing the value from each item and making sure it matched item total.
BUG - Checkout page allows non alpha characters for names
Summary
Checkout page allows numbers in the name.
Step To Reproduce
- Login with username: standard_user and password: secret_sauce
- Add an item to the cart on the inventory page
- Click the cart icon to take you to the cart page
- Click checkout and it should take you to checkout page
- Enter in "9" into First name, last name and zip code for the form.
- 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
- Login with username: standard_user and password: secret_sauce
- Add an item to the cart on the inventory page
- Click the cart icon to take you to the cart page
- 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
- Login with username: standard_user and password: secret_sauce
- Add an item to the cart on the inventory page
- Click on the burger button (options button) and logout
- 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
- Login with username: standard_user and password: secret_sauce
- Change session storage variable "session-username" from "standard_user" to "problem_user"
- 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 |
Test-requirement for: Inventory - clicking an item brings you to that page
Summary
Clicking an item brings you to that items page
How it is going to be tested
The inventory item will be clicked on and should bring you to a new html which has the same title (and if possible id) as the item clicked
BUG - Usernames and password visible via Javascript
Summary
It is possible to see the username and password via javascript.
Step To Reproduce
- 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
- Login with username: standard_user and password: secret_sauce
- Add an item to the cart on the inventory page
- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.