Giter Club home page Giter Club logo

dusk-demo's Introduction

Laravel Dusk Demo

This is a demo project for the Alpha version of Laravel Dusk. It basically tests the register and login functionality from the default application scaffold from Laravel running php artisan make:auth using Dusk.

You can find the tests in the tests/Browser directory. For more information on the functions see the Laravel Dusk documentation.

Travis

This project is build on Travis and also runs the php artisan dusk command there which is really cool!

Running Dusk!

  • Clone or fork and clone the project
  • Run composer install
  • Create a database, default database name is set to dusk_test. So if you use a different database you need to update .env.dusk.local
  • Make sure your application is accessible by the browser. I used homestead to set everything up.
  • Run php artisan dusk to run the tests

You might see some chrome windows popup! Dusk is doing that for you! How awesome is that? If you watch the windows carefully you can even see the fields being filled.

Note: You don't have to migrate the database since it will migrate the database for each test. See use DatabaseMigrations in the test classes.

dusk-demo's People

Contributors

bobbybouwmann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dusk-demo's Issues

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.