Skip to content

Commit

Permalink
Fix requestBody
Browse files Browse the repository at this point in the history
The The presence of any of these properties signals that we're using the new object API.
  • Loading branch information
JeffreyWay committed Feb 11, 2022
1 parent 5a22eee commit a9446a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stubs/support/laravel-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a9446a1

Please sign in to comment.