Skip to content

Commit

Permalink
Merge pull request #260 from trandangtri/next-17944/unify-context-token
Browse files Browse the repository at this point in the history
NEXT-17944 - Unify the way to manipulate the context token variable
  • Loading branch information
jleifeld authored Nov 28, 2022
2 parents b523c5c + ee79a6c commit 4305263
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class productWishlistFixture extends StoreFixtureService{
}));
})
.then((response) => {
return this.apiClient.setContextToken(response.data.contextToken);
return this.apiClient.setContextToken(response.headers['sw-context-token']);
})
.then(() => {
return this.apiClient.post(`/customer/wishlist/add/${productId}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class OrderFixtureService extends SalesChannelFixtureService {
}));
})
.then((response) => {
return this.apiClient.setContextToken(response.data.contextToken);
return this.apiClient.setContextToken(response.headers['sw-context-token']);
})
.then(() => {
return this.apiClient.post('/checkout/cart/line-item', {
Expand Down
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": "4.0.0",
"version": "4.0.1",
"description": "E2E Testsuite for Shopware 6 using Cypress.js",
"keywords": [
"e2e",
Expand Down

0 comments on commit 4305263

Please sign in to comment.