Welcome to the FCM Digital QA team technical challenge, the objective of this challenge is to learn more about the way you work. There is no single solution, so don't worry, just do the best you can.
You will have to create a fork of this repository on which you will work. Once you complete the challenge, you will contact us via email and we will proceed to review it.
Given some user stories witch their acceptance criterias:
- Write the test cases in the README.md file, Test Cases section.
- Create a project using YARN.
- Install Cypress using YARN.
- Implement in Cypress as many tests as test cases have been defined to be validated automatically. Upload to your fork all the code structure needed to run the tests as well as the instructions so that they can be easily executed (write the instructions on the README.md file, How to Run the Tests section).
- Write the git commands used during the challenge in the README.md file, Git Commands section.
- Write down the problems you have encountered during the challenge in the README.md file, Problems section.
As a Swag Labs admin, I need to access/logout the platform with the 4 different user types.
Ensure the Swag Labs admins are able to:
- Log in/Log out to Swag Labs (standard_user)
- Not logging in to Swag Labs and getting an error (locked_out_user)
- Log in/Log out to Swag Labs (problem_user)
- Log in/Log out to Swag Labs (performance_glitch_user)
As a Swag Labs standard_user, I need to open the products detail page in the Swag Labs ordering platform so that get more information about the products
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the Products page
- Able to access to the products details view
As a Swag Labs standard_user, I need to add to cart products in the Swag Labs ordering platform so that I can buy it
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the Products page
- Able to add to cart product(s) to buy
- Navigate into the Products details page
- Able to add to cart product(s) to buy
As a Swag Labs standard_user, I need to review my previous added to cart products in the Swag Labs ordering platform so that I can remove it
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the Products page
- Able to add to cart product(s) to buy
- Able to remove product(s)
- Navigate into the Products details page
- Able to remove product(s)
- Navigate into the shopping cart
- Able to remove product(s)
As a Swag Labs standard_user, I need to sort products in the Swag Labs ordering platform so that I can find what I'm looking for easily
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the Products page
- Able to sort product(s) in different ways
As a Swag Labs standard_user, I need to reset the app status in the Swag Labs ordering platform so that I can reset the app to its initial settings
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the menu page
- Able to reset app state
As a Swag Labs standard_user, I need to see the product information in the product page and product details page in the Swag Labs ordering platform so that I can know what I'm buying
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the Products page
- Able to see all the product information (image, title, description, price)
- Navigate into the Products details page
- Able to see all the product information (image, title, description, price)
As a Swag Labs standard_user, I need to see the shopping cart with the number of products added in the Swag Labs ordering platform so that I can to know the status of the same
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate in the Products page
- Able to see the shopping cart with the number of products added
- Navigate into the Products details page
- Able to see the shopping cart with the number of products added
- Navigate into the shopping cart
- Able to see the shopping cart with the number of products added
As a Swag Labs standard_user, I need to see all the product added to the shopping cart in the Swag Labs ordering platform so that I can to know what I am going to buy
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate into the shopping cart
- Able to see all the products information what I am going to buy (qty, name, description, price)
As a Swag Labs standard_user, I need to buy all the product added to the shopping cart in the Swag Labs ordering platform
Ensure the Swag Labs standard_user are able to:
- Log in to Swag Labs
- Navigate into the shopping cart
- Able to Checkout
- Able to complete a form with my personal data
- Able to see an overview about my order (qty, name, description, unit price, payment information, shipping information, item total price, tax, total price)
- Able to see a confirmation page
Section where the different test cases of the challenge will be defined.
Section where the necessary instructions to run the tests will be added
Section to add the git commands used during the challenge
Section to write down problems you have encountered during the challenge