GithubHelp home page GithubHelp logo

constant-contact-woocommerce's Introduction

Constant Contact ❤️ WooCommerce

Testing

Cypress.io

This plugin uses Cypress.io for end-to-end testing.

Cypress's files are located in tests/cypress/.

Installing Cypress

Use node's package manager npm to install Cypress and it's dependencies:

npm install

Configuration

Base Configuration

Before running Cypress, you'll need to copy cypress.example.json to cypress.json, and modify it for your environment.

Variables

You will need to configure the following variables for your environment.

  • baseUrl This is the base URL of your local WordPress instance.
  • admin_user The WordPress admin user.
  • admin_pass Password for the admin user.
  • customer_user A WooCommerce customer account user.
  • customer_pass The password for the customer account.
  • test_product_url A frontend URL to a product to test with during checkout.

Fixtures

Cypress relies on fixtures to provide some additional information. The fixtures for the form fields in the Admin screen are built using PHP reflection. If you modify the field names, you will need to regenerate the fixture data by running the following composer command:

composer run-script generate-fixtures

Running Cypress

In your terminal:

$(npm bin)/cypress open

constant-contact-woocommerce's People

Contributors

phatsk avatar ggwicz avatar richaber avatar ravewebdev avatar tw2113 avatar dependabot[bot] avatar dcooney avatar oceas avatar jmichaelward 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.