diff --git a/cypress/support/CHANGELOG.md b/cypress/support/CHANGELOG.md index 14b92e7..0b84d35 100644 --- a/cypress/support/CHANGELOG.md +++ b/cypress/support/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [7.0.3] - 01.02.2023 + +### Added +- Added correct expiry value with same calculation as in the administration + ## [7.0.0] - 10.01.2023 ### Changed diff --git a/cypress/support/commands/api-commands.js b/cypress/support/commands/api-commands.js index 81e2e98..33018f6 100644 --- a/cypress/support/commands/api-commands.js +++ b/cypress/support/commands/api-commands.js @@ -24,6 +24,7 @@ Cypress.Commands.add('authenticate', () => { let result = responseData.body; result.access = result.access_token; result.refresh = result.refresh_token; + result.expiry = Math.round(+new Date() / 1000) + result.expires_in; cy.log('request /api/oauth/token') diff --git a/package.json b/package.json index bd5e9fb..aceb7c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@shopware-ag/e2e-testsuite-platform", - "version": "7.0.2", + "version": "7.0.3", "description": "E2E Testsuite for Shopware 6 using Cypress.js", "keywords": [ "e2e",