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

Test that we handle stored mx_last_room_id correctly #4292

Merged
merged 1 commit into from
Jun 14, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 13, 2017

This will fail until the corresponding matrix-react-sdk PR lands.

 * Do we show the last room correctly on resume?
 * Do we show the home page if we have no last room?
 * If we follow a login link, and re-log-in, do we correctly vape the
   mx_last_room_id (#4283)
Copy link
Contributor

@lukebarnard1 lukebarnard1 left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

also, the tests are passing on travis....

@@ -271,9 +245,30 @@ describe('loading:', function () {
localStorage.setItem("mx_is_url", "http://localhost" );
localStorage.setItem("mx_access_token", "access_token");
localStorage.setItem("mx_user_id", "@me:localhost");
localStorage.setItem("mx_last_room_id", "!last_room:id");
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure I like the fact that these tests rely on each other... Could this be moved to the start of the next test?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a beforeEach, not a test?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh! That's fine then :)

@lukebarnard1 lukebarnard1 assigned richvdh and unassigned lukebarnard1 Jun 14, 2017
@richvdh
Copy link
Member Author

richvdh commented Jun 14, 2017

also, the tests are passing on travis....

Ah yes. That's because of the magic where we use the same-named branch of react-sdk.

@richvdh richvdh merged commit d7fb009 into develop Jun 14, 2017
@richvdh richvdh deleted the rav/clear_storage_on_login branch June 14, 2017 09:34
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