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

start session properly after create/recover account #1590

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

piyalbasu
Copy link
Contributor

#1431

Makes sure to start a 24h session after create/recover account

@@ -8,8 +8,6 @@ test("Adding unverified Soroban token", async ({ page, extensionId }) => {

await page.getByTestId("account-options-dropdown").click();
await page.getByText("Manage Assets").click({ force: true });
await page.getByPlaceholder("Enter password").fill(PASSWORD);
await page.getByText("Log In").click({ force: true });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

one byproduct of this ticket is that we are no longer testing the experience when a user's session has timed out. We'll have to think about how we can actually test this in the future 🤔

Maybe we need to pass a configuration to the build step to make the session timeout immediately instead of wating the normal 24h

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe one way would be to have sessionTimer.startSession take the session length as an arg so that in the test we could just pass in a 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's a good call. I think the question is how we want to pass this configuration. Maybe the easiest path would be just appending a query param to chrome-extension://${extensionId}/index.html and using that to pass an arg to the background script.

We're going to have a ticket coming up for users to be able to configure how long they want their session to be. This can be added as part of that ticket

@piyalbasu piyalbasu merged commit 6db2f0d into release/5.25.0 Nov 6, 2024
3 checks passed
@piyalbasu piyalbasu deleted the bugfix/1431-login-after-new-account branch November 6, 2024 21:52
@piyalbasu piyalbasu self-assigned this Nov 14, 2024
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.

2 participants