Skip to content

Commit

Permalink
NEXT-37357 - Fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
seggewiss committed Jul 23, 2024
1 parent 7005d7c commit 30ddaa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands/api-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Cypress.Commands.add('authenticate', () => {
client_id: Cypress.env('client_id') ? Cypress.env('client_id') : 'administration',
scopes: Cypress.env('scope') ? Cypress.env('scope') : 'write',
username: Cypress.env('username') || Cypress.env('user') || 'admin',
password: Cypress.env('password') || Cypress.env('pass') || 'shopware'
password: Cypress.env('password') || Cypress.env('pass') || 'shopware',
}
).then((responseData) => {
let result = responseData.body;
result.access = result.access_token;
result.refresh = result.refresh_token;
result.expiry = Math.round(+new Date() / 1000) + result.expires_in;
result.expiry = Math.round(Date.now() + (result.expires_in * 1000));

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

0 comments on commit 30ddaa5

Please sign in to comment.