Git Product home page Git Product logo

microservices-demo-cypress's Introduction

Build Status

#Start First You need to download repos (both are public) ->

1

ajaskolski/microservices-demo-cypress I forked front end repository and push my own docker image to introduce cypress to ajaskolski/front-end to start just run docker containers:

docker-compose -f deploy/docker-compose/docker-compose.yml up -d

after work just clean containers:

docker-compose -f deploy/docker-compose/docker-compose.yml down

2

ajaskolski/front-end All the sweets of cypress and new code can be found in this repo. You can run cypress tests by

cypress run

or use gui

cypress open

#Summary

Added docker image of front-end service with cypress tests.

To easier locate elements without id I mostly add custom data attributes in html. For modern projects in react/vue there should shared file beetween src code and test code for updated values of locators.

Application got some bugs so I choose sample paths viable to automate.

Add whole configuration contains eslint, prettier and tsconfig.

There is case using hardcoded data and case that creates its own user data and clean it afterwards with api methods.

Showed one of possible approaches to the topic. Used piece of page object patern, add some custom method to cy, add plugin with faker to create data in test.

Every push to front-end repository master branch will trigger update of docker image on dockerhub as latest tag.

Next step would be adding database for clean DDT firebase/mysql, linking pushes to CI/CD, put some visual testing with Percy or any similiar.

microservices-demo-cypress's People

Contributors

nustiueudinastea avatar idcrosby avatar philwinder avatar vlal avatar pidster avatar jasonrichardsmith avatar moretea avatar frankscholten avatar errordeveloper avatar adam-sandor avatar peterbourgon avatar lukemarsden avatar katzien avatar amouat avatar jml avatar abuehrle avatar alban avatar etiennetremel avatar stefanprodan avatar marccarre avatar vincents avatar gellis01 avatar awh avatar dtzar avatar gavrie avatar adrahon avatar styro avatar bboreham avatar blixtra avatar axsuul avatar

Watchers

James Cloos 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.