Code Monkey home page Code Monkey logo

e2e-core's Introduction

Integration test for core-apps

Build StatusCodacy Badge

These tests use cypress.js to inspect the pages of the default apps inside a running exist instance.

Requirements

  • node >= 8
  • for local development a running exist instance:
    • at port: 8080
    • with default admin user and pw

To install cypress from inside this folder call:

npm i

Running cypress

When developing tests locally, navigate inside this folder in your CLI: use either:

npx cypress open

or

npm run cypress

To bring up the interactive test client.

Tests are also automatically executed on Travis. Test runs are linked to the cypress dashboard. To access the dashboard log-in with your Github credentials.

What this is

This is to serve as a central place to develop e2e tests which will then be added to the respective repos.

The autodeployed apps are:

  • eXide
  • monex
  • Usermanager (deprec.)
  • Dashboard
    • Backup Central (deprec.)
    • Collection Browser (deprec.)
    • Package Manager (deprec.)

A test scaffold for each of these can be found inside cypress/integration/* along with some boilerplate templates in cypress/.

We currently support two test suites, for the deprecated and upcoming new version of the Dashboard apps. Depending on your version of exist-db you need to execute the matching test suite, either:

  • npm test -- --spec "cypress/integration/4.x.x/**" or
  • npm test -- --spec "cypress/integration/5.x.x/**"

Note the use of -- to pass arguments to npm test

!Warning! Cypress does not natively support shadow-dom elements, the provided custom commands still lack polish.

What this isn't

Integration testing within a browser are not a good fit for performance testing of java code. For stress tests and performance tests, visit e2e-exist

This repo will never add apps that aren't in exist-db's auto-deploy folder on a fresh install. To add similar tests to your own apps, see the scaffolding of the yeoman generator

e2e-core's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar duncdrum avatar joewiz avatar line-o avatar wolfgangmm avatar

Watchers

 avatar  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.