diff --git a/src/stubs/support/laravel-commands.js b/src/stubs/support/laravel-commands.js index 372c891..36a47ce 100644 --- a/src/stubs/support/laravel-commands.js +++ b/src/stubs/support/laravel-commands.js @@ -9,7 +9,7 @@ */ Cypress.Commands.add('login', (attributes = {}) => { // Are we using the new object system. - let requestBody = attributes.attributes ? attributes : { attributes }; + let requestBody = attributes.attributes || attributes.state || attributes.load ? attributes : { attributes }; return cy .csrfToken()