laracasts / cypress

Laravel Cypress Integration
MIT License
618 stars 68 forks source link

Assertion proxy for phpunit & http assertions #4

Closed dillingham closed 4 years ago

dillingham commented 4 years ago

Firstly, awesome package! Really enjoying the quick familiarity it brings my laravelian brain.

I was curious about the possibility of magic methods that just send to php

cy.php(`assertOk()`).then(outcome => {
    expect(outcome).to.equal(true); 
});

Like behind the scenes it makes phpunit calls & asserts outcomes behind a helper method

Maybe pestphp would help since it's syntax is similar, not super familiar with it.

Would be a cool way to avoid duplicating all the stuff.

JeffreyWay commented 4 years ago

Eh, I think that's probably a bit too far for my taste.