Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usando lastInteraction para mantener la sesion #736

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

tfloxolodeiro
Copy link
Contributor

Resolves #730

Copy link
Contributor

@PalumboN PalumboN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines -19 to -20
_get(key) { return JSON.parse(localStorage.getItem(key) || null) },
_save(key, data = null) { localStorage.setItem(key, JSON.stringify(data)) },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

const currentSessionId = pbAnalytics.getSession().id
assert.notEqual(firstSessionId, currentSessionId)
})

function getSession() {
test('Should update lastInteraction after an interaction', function (assert) {
pbAnalytics.getSession() // Creates session
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creo que esto podría estar en el beforeEach, no?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sí. Y si agregamos una variable al suite, el beforeEach podría tener algo así como firstSessionId = pbAnalytics.getSession().id // Creates session y creo que podemos sacar esa línea de todos los tests

@asanzo asanzo merged commit 3c40df7 into develop Apr 7, 2021
@asanzo asanzo deleted the using-lastInteraction branch April 7, 2021 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

La sesión de Pilas Bloques no debería cambiar cada 30', sino 30' desde la última interacción
3 participants