GithubHelp home page GithubHelp logo

testaos's Introduction

Test AOS

Requirements

Le but est de créer une petite application de login via email et mot de passe et de créer 2 tests automatisés avec Puppeteer.

A. Création de l'application

  1. Créer une page d'identification dans lequel l'utilisateur doit rentrer un Email et un Mot de passe
  2. Implémenter dans la base de donnée un "compte" qui te permettra de tester ton portail
  3. Si les credentials sont bons tu es redirigé vers une page avec un texte sur la page : Success
  4. Si les crédentials ne sont pas bon un message d'erreur apparaît sur la page de login

B. Tester avec Puppeteer

  1. Coder l'automatisation du test sur Puppeteer (2 tests)
    -> Un test pour le login success
    -> Un test pour le login error
    -> Executer pupertee en mode console (les deux tests doivent passer)

Credentials du compte

Email: [email protected]
Password: test123

Lancement et installation

Script d'installation

npm install

Script de lancement du front et du serveur

npm start 

Le front se lance sur l'adresse: http://localhost:3001/

Script de lancement des tests avec jest et puppeteer

npm run test

testaos's People

Contributors

trib-jpalluau 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.