Git Product home page Git Product logo

cypress-testsuite's Introduction

Cypress Testsuite

  1. delete the existing cypress folder within your frappe application folder.

  2. clone this repository in the apps/frappe directory

$ git clone [email protected]:frappe/cypress-testsuite.git cypress
  1. create a cypress.json file within the frappe application directory, an example config for it would go as follows:
{
  "baseUrl": "http://<instance-url>:<port>",
  "projectId": "92odwv",
  "adminPassword": "frappe",
  "viewportHeight": 1080,
  "viewportWidth": 1920
}
  1. checkout the commands.js for available commands, and some example ui tests for guidelines.

cypress-testsuite's People

Contributors

thunderbottom avatar umairsy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cypress-testsuite's Issues

[Stock] Item Tax Template

  • Create new Tax Template
  • Open Item and select Tax Template in it
  • Create a New Sales Order or Sales Invoice
  • Check if Item Tax Template is fetched with item details. If not, select Item Tax manually
  • Check if Item tax is fetching in the transactions

[Stock] Item Price for specific Customer or Supplier

  • Pick an Item
  • Create Item Price for the Item
  • In the Item Price, select a customer or Supplier
  • Save Item Price
  • Create a new Sales Order. Select a Customer and Item.
  • Check if Item is fetched fine from the Customer specific Item Price

[Stock] Purchase Receipt New

  • Stock > New Purchase Receipt
  • Fetch details from Purchase Order, or select Supplier's manually
  • Select a Stock Item.
  • Ensure Item's rate is fetched or entered manually
  • Apply some taxes or charges
  • Save and Submit Purchase Receipt
  • Check the Stock Ledger and General for the Purchase Receipt (ref. to manual for a/cs posting)

Lead: Creating a new Lead manually

  • CRM > Lead
  • Enter Name, Organization, Campaign, Next Contact by
  • Save lead

To test:

  • Lead ID
  • Check if Calendar event is added for the Next Contact Person

[Stock] Delivery Note - Normal

  • Stock >> Delivery Note >> New
  • Select customer >> Click on 'Get item from' >> Sales Order
  • Choose the Sales Order >> Get Items --Check the customer name, qty & calculation is fine
  • Choose applicable option under 'Sales Taxes and Charges Template'
  • Save >> Submit >> Yes (confirm)
  • Validate the Stock and Accounting Entry being posted on Correct Ledget with Correct Amount
    (Entry to be posted COGS A/c Dr... To. Stock/Inventory A/c Cr)

Lead: Creation via Website Contact Us page

  • Setup Contact Us Page from Website module
  • Add some custom Issue Types
  • Access contact us page as a website visit. Check if details fetching on the Contact Us page as per the website configuration
  • Enter details and save
  • Check if Lead is created in the backend

[Stock] Purchase receipt for sub-contracting

  • Identify a Purchase Order created for sub-contracting
  • Create a Purchase Receipt against a Purchase Order
  • For the Item, enter the actual received qty (equal or less then PO). Try entering more qty than PO and check if it raises a validation.
  • Enter Supplier Warehouse (sub-contractors warehouse)
  • Save and Submit Purchase Receipt.
  • Check Stock Ledger and General Ledger posting
  • Check valuation rate for the sub-contracted item

[Stock] Item Price for specific UoM

  • Pick an Item
  • Create Item Price for the item
  • In Item Price, select a UoM
  • Enter the rate for the UoM
  • Create a new Sales Order. Select a Customer and Item.
  • Check if Item is fetched fine from the Customer specific Item Price

[CRM] Newsletter

  • Select an Email Group
  • Enter subject
  • Enter content with text, image, table and other formats
  • Try test email
  • Send Newsletter and check if it works

[Stock] Item Coding based on Naming Series

  • Stock Setting > Naming based on "Naming". Refresh
  • Stock > Item > New Item
  • Select Naming Series
  • Enter Item Name, Description, Item Group
  • Save Item
  • Check if Item Code is correctly created based on Naming Series

[CRM] New Quotation

  • CRM > new Quotation
  • Select Lead / Customer
  • Select Items, with Rate and Qty. Check if basic calculations are correct
  • Apply taxes and other charges
  • Save and Submit Quotation

Lead: Creation via Email Account

  • Setup Email Domain and Email Account, append it to Lead
  • Send a test email to email ID for which ERPNext Account was configured
  • Check if Lead is auto-created based on Email.
  • Reply from the Lead and test one round of email exchange, to ensure email syncing between ERPNext and email is working.

Opportunity: Create Opportunity Manually

  • CRM > Opportunity > New
  • Create new Opportunity for existing Lead
  • Create new Opportunity for existing Customer
  • Select some Items in Opportunity
  • Test email communication from Opportunity

CRM: Email Group

  • Create some Leads
  • Create some Contacts
  • Try creating Email Group based on Lead and Contacts

[Stock] Item Price fetching

Item Price in Normal Currency

  • Create an item
  • Pick a Price List
  • Create an Item Price
  • Save Item Price
  • Select Item in Sales Order and check if Item Price is fetched correctly

Item Price in Foreign Currency

  • Create an item
  • Pick a Price List in Foreign Currency
  • Create an Item Price, with for Foreign currency
  • Save Item Price
  • Select Item in Sales Order and check if Item Price is fetched correctly based on Currency selection in Sales Order

Missing functions

  • Open row from the child table
  • Fill value in the field based on field Label
  • Checking / unchecking value in the check-box field
  • Click_Button (like Menu)
  • Accessing Single DocTypes (like Buying Settings)
  • Based on Former, functions to access page via Awesome Bar

[Stock] Delivery Note for excess qty. Check if system stops and Notify

  • Stock >> Delivery Note >> New
  • Select customer >> Click on 'Get item from' >> Sales Order
  • Choose the Sales Order >> Get Items --Check the customer name, qty & calculation is fine
  • Choose applicable option under 'Sales Taxes and Charges Template'
  • Save >> Submit >> Yes (confirm)
  • System throws error and notifies insufficient qty.

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.