headlesslaravel / formations

MIT License
3 stars 5 forks source link

Cypress generator #83

Open dillingham opened 2 years ago

dillingham commented 2 years ago

A console command that generates a set of basic crud tests using known data-test attributes.

All will pass initially if using the default resources/js/Resources views..

But will offer assurances when custom views are added..

And offer a starting point to customize tests to the desired outcome

dillingham commented 2 years ago
$resourceName.spec.js
describe('$resourceName', () {

    it('view list of $resourceName', () => {
        //
    })

    it('view single $resourceName', () => {
        //
    })

    it('create a $resourceName', () => {
        //
    })

    it('update a $resourceName', () => {
        //
    })

    it('delete a $resourceName', () => {
        //
    })

    it('restore a $resourceName', () => {
        //
    })

    it('delete a $resourceName permanently', () => {
        //
    })
})