Skip to content

Commit

Permalink
Merge pull request #229 from shopware/next-20396/fix-login-command
Browse files Browse the repository at this point in the history
NEXT-20396 - Fix storefront guest login command
  • Loading branch information
jleifeld authored Jun 9, 2022
2 parents 3627ee8 + 5fa7101 commit c747e3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cypress/support/commands/storefront-api-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,8 @@ Cypress.Commands.add('loginByGuestAccountViaApi', (userData) => {
}).then((result) => {
return Cypress._.merge(result, finalAddressRawData);
}).then((result) => {
cy.storefrontApiRequest('POST', '/account/register&response=true', {}, result);
cy.storefrontApiRequest('POST', 'account/register?response=true', {
"sw-context-token": uuid().replace(/-/g, '')
}, result);
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shopware-ag/e2e-testsuite-platform",
"version": "3.0.14",
"version": "3.0.15",
"description": "E2E Testsuite for Shopware 6 using Cypress.js",
"keywords": [
"e2e",
Expand Down

0 comments on commit c747e3f

Please sign in to comment.