RagingZonkey / E2E-WDIO-hometask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

A submission for the homework task following the "E2E" lecture.

Installation

Clone the repository to your local machine:

git clone https://github.com/RagingZonkey/E2E-WDIO-hometask.git test-project

cd into the project directory:

cd test-project

Set up dependencies:

yarn install

Run the test suite:

yarn wdio

Reasoning for addiotional scenario choice

Due to the fact that, according to the software testing pyramid, the amount of E2E tests should be very limited and strongly specified matching the most vital business needs, so that after completing the testing lifecycle stakeholders could be confident about the scenarios which are going to be the most profitable ones to be stable and the processes to be sound. So, from my point of view, in the case with Newegg the most crucial parts of user experience are interacting with the shopping cart and choosing the right products through well aligned categories which were basically covered within my test suite.

Test-suite last run results

"spec" Reporter:

[chrome 107.0.5304.110 linux #0-1] Running: chrome (v107.0.5304.110) on linux
[chrome 107.0.5304.110 linux #0-1] Session ID: 202c365a8f60c5b92abdf4f0f6065909
[chrome 107.0.5304.110 linux #0-1]
[chrome 107.0.5304.110 linux #0-1] » /features/bootcamp.feature
[chrome 107.0.5304.110 linux #0-1] Bootcamp E2E
[chrome 107.0.5304.110 linux #0-1] Search bar
[chrome 107.0.5304.110 linux #0-1] ✓ Given a customer opens the home page
[chrome 107.0.5304.110 linux #0-1] ✓ When the customer closes the promotional banner in case of its appearance
[chrome 107.0.5304.110 linux #0-1] ✓ When the customer enters 'Windows' in the search bar
[chrome 107.0.5304.110 linux #0-1] ✓ And the customer clicks on the search button
[chrome 107.0.5304.110 linux #0-1] ✓ Then the customer should see at least one respective item
[chrome 107.0.5304.110 linux #0-1]
[chrome 107.0.5304.110 linux #0-1] Internet shop logo button
[chrome 107.0.5304.110 linux #0-1] ✓ Given a customer opens the home page
[chrome 107.0.5304.110 linux #0-1] ✓ When the customer closes the promotional banner in case of its appearance
[chrome 107.0.5304.110 linux #0-1] ✓ When the customer opens "Today's Best Deals" tab
[chrome 107.0.5304.110 linux #0-1] ✓ And the customer clicks on the Newegg logo
[chrome 107.0.5304.110 linux #0-1] ✓ Then the customer should see the home page
[chrome 107.0.5304.110 linux #0-1]
[chrome 107.0.5304.110 linux #0-1] 10 passing (41.1s)

---

[chrome 107.0.5304.110 linux #0-0] Running: chrome (v107.0.5304.110) on linux
[chrome 107.0.5304.110 linux #0-0] Session ID: f828e439d5134f3a44e4df5b72619e3d
[chrome 107.0.5304.110 linux #0-0]
[chrome 107.0.5304.110 linux #0-0] » /features/bootcamp_additional.feature
[chrome 107.0.5304.110 linux #0-0] Bootcamp additional "add item to cart" scenarios
[chrome 107.0.5304.110 linux #0-0] Add one item from "Today's Best Deals" category to the cart and proceed to the checkout from the item's page
[chrome 107.0.5304.110 linux #0-0] ✓ Given a customer opens the home page
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer closes the promotional banner in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer opens "Today's Best Deals" tab
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer clicks on item number 1
[chrome 107.0.5304.110 linux #0-0] ✓ And the system collects the item's price and name
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer sets ADD THIS OFFER TO CART unchecked in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on ADD TO CART button
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer rejects protection plan by clicking NO,THANKS button
[chrome 107.0.5304.110 linux #0-0] ✓ And the PROCEED TO CHECKOUT button has inscription saying '1 ITEM'
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on PROCEED TO CHECKOUT button
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer logs in with existing credentials
[chrome 107.0.5304.110 linux #0-0] ✓ Then the customer should see the checkout page with the respective item price
[chrome 107.0.5304.110 linux #0-0] ✓ And the system deletes browser cookies
[chrome 107.0.5304.110 linux #0-0]
[chrome 107.0.5304.110 linux #0-0] Add two items from "Today's Best Deals" category to the cart and view them on the cart page
[chrome 107.0.5304.110 linux #0-0] ✓ Given a customer opens the home page
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer closes the promotional banner in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer opens "Today's Best Deals" tab
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer clicks on item number 1
[chrome 107.0.5304.110 linux #0-0] ✓ And the system collects the item's price and name
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer sets ADD THIS OFFER TO CART unchecked in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on ADD TO CART button
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer rejects protection plan by clicking NO,THANKS button
[chrome 107.0.5304.110 linux #0-0] ✓ And the page has a message saying 'ITEM HAS BEEN ADDED TO CART'
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer loads back to the previous page
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer clicks on item number 4
[chrome 107.0.5304.110 linux #0-0] ✓ And the system collects the item's price and name
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer sets ADD THIS OFFER TO CART unchecked in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on ADD TO CART button
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer rejects protection plan by clicking NO,THANKS button
[chrome 107.0.5304.110 linux #0-0] ✓ And the page has a message saying 'ITEM HAS BEEN ADDED TO CART'
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on VIEW CART button
[chrome 107.0.5304.110 linux #0-0] ✓ Then the customer should see two respective items on the cart page
[chrome 107.0.5304.110 linux #0-0] ✓ And the system deletes browser cookies
[chrome 107.0.5304.110 linux #0-0]
[chrome 107.0.5304.110 linux #0-0] Add one item from "Today's Best Deals" category to the cart and proceed to the checkout from the item's page as an unregistered user
[chrome 107.0.5304.110 linux #0-0] ✓ Given a customer opens the home page
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer closes the promotional banner in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer opens "Today's Best Deals" tab
[chrome 107.0.5304.110 linux #0-0] ✓ When the customer clicks on item number 1
[chrome 107.0.5304.110 linux #0-0] ✓ And the system collects the item's price and name
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer sets ADD THIS OFFER TO CART unchecked in case of its appearance
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on ADD TO CART button
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer rejects protection plan by clicking NO,THANKS button
[chrome 107.0.5304.110 linux #0-0] ✓ And the PROCEED TO CHECKOUT button has inscription saying '1 ITEM'
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer clicks on PROCEED TO CHECKOUT button
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer creates a new account
[chrome 107.0.5304.110 linux #0-0] ✓ And the customer closes ADD ADDRESS modal window
[chrome 107.0.5304.110 linux #0-0] ✓ Then the customer should see the checkout page with the respective item price
[chrome 107.0.5304.110 linux #0-0] ✓ And the system deletes browser cookies
[chrome 107.0.5304.110 linux #0-0]
[chrome 107.0.5304.110 linux #0-0] 46 passing (3m 8.2s)

Spec Files: 2 passed, 2 total (100% completed) in 00:03:10

About


Languages

Language:JavaScript 86.7%Language:Gherkin 13.3%