Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

TimoPtr
Copy link
Member

@TimoPtr TimoPtr commented Oct 10, 2025

Summary

While testing the new onboading @klaasnicolaas found out that we can come back to name your device when adding a server from the settings. It put the apps in a weird state because the auth_token is already consumed so we cannot do anything on this screen and it leads to this error

image

This is due to the recent changes that skip the welcome screen, we were poping up up to WelcomeScreen but since we've skipped it the framework is not able to clear the back stack properly. This PR ensure that we clear up to the startDestination instead.

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

Screenshots

Screen_recording_20251010_142557.mp4

Comment on lines +372 to +385
@Test
fun `Given device named and skip welcome with url when pressing next then show LocalFirst then goes back stop the app`() {
localFirstTest(true, "http://ha.local")
}

@Test
fun `Given device named and skip welcome without url when pressing next then show LocalFirst then goes back stop the app`() {
localFirstTest(true, null)
}

@Test
fun `Given device named when pressing next then show LocalFirst then goes back stop the app`() {
val instanceUrl = "http://ha.local"
testNavigation {
navController.navigateToNameYourDevice(instanceUrl, "code")
localFirstTest(false, null)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@jpelgrom since this class is using JUnit 4 I can't use ParametrizedTest 👎🏻

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the explanation. More specific test titles are good to have here anyway.

@TimoPtr TimoPtr merged commit cca2730 into main Oct 15, 2025
52 of 55 checks passed
@TimoPtr TimoPtr deleted the fix/onboarding-back-after-name-device branch October 15, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.