Code Monkey home page Code Monkey logo

sdet-technical-task's Introduction

Test automation framework for Store Cpanel Application

Prerequisites:

  • Node.js version 20+
  • npm version 8+

Tools:

  1. Node v20.10.0
  2. Typescript
  3. Playwright
  4. ESlint
  5. Prettier

Getting started:

Install project dependencies

npm install

or

npm ci

Add ENV variables

cp ./.env.example ./.env

This config is also personal, so you could modify it as you like

Setting proper env variables

  • BASE_URL defines base URL of frontend app. Defaults to "https://cloud.scylladb.com"

Run tests

npm run test

or

npm t

Check the code quality

npm run check-all

HTML Report

npm run report

Automation steps to cover and verify:

  1. Navigate to the cPanel store

    • Open the shopping cart
  2. Order a product

    • Click 'Order Now' for any product
  3. Enter IP address

    • On the new page, enter an IP address
  4. Select addons

    • Choose any addon(s)
  5. Continue to checkout

    • Verify the 'Order Summary' is updated
    • Click on the 'Continue' button
  6. Verify product and price

    • Verify the expected products and addons are present (names)
    • Ensure prices are correct
    • Ensure prorated prices are correct
  7. Proceed to checkout

    • Click on the 'Checkout' button
  8. Verify checkout information

    • Ensure the information in the product table is correct:
      • The license name is correct
      • The IP address is shown
      • The monthly price is correct
      • The “Due Today“ prices are correct
    • Verify that the ‘Personal Information', 'Billing Address', 'Account Security', 'Terms & Conditions' and 'Payment Details’ sections are visible
    • Verify that the ‘Complete Order' button is visible but disabled

sdet-technical-task's People

Contributors

eugenepetrik avatar

Watchers

 avatar

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.