Skip to content

Commit

Permalink
Merge pull request #286 from shopware/fix-expiry-value
Browse files Browse the repository at this point in the history
Fix expiry value
  • Loading branch information
seggewiss committed Feb 1, 2023
2 parents ba2340e + d3b4fc7 commit 1f47320
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cypress/support/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cypress/support/commands/api-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')

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": "7.0.2",
"version": "7.0.3",
"description": "E2E Testsuite for Shopware 6 using Cypress.js",
"keywords": [
"e2e",
Expand Down

0 comments on commit 1f47320

Please sign in to comment.