Skip to content
This repository was archived by the owner on Oct 21, 2019. It is now read-only.

Test timeline messages have correct display name with lazy loading #16

Merged
merged 19 commits into from
Sep 14, 2018

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Sep 12, 2018

This needed a bit of infrastructure to create more users without spinning up more browsers, as you need at least 3 users to test the use case.
The test does the follow:

  • bob creates a room
  • charly-1 ... charly-10 join the room and send some messages
  • alice enables lazy loading
  • alice joins the room
  • alice scrolls to the top of the timeline
  • alice's timeline should contain the messages the charly-x users sent with the correct display name.

More lazy loading tests are coming based on this work.

@bwindels bwindels changed the title Tests for timeline message with lazy loading Test timeline messages have correct display name with lazy loading Sep 12, 2018
@bwindels
Copy link
Contributor Author

Part of element-hq/element-web#7287


const uuidv4 = require('uuid/v4');

/* no pun intented */
Copy link
Member

Choose a reason for hiding this comment

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

Points awarded anyway

r.push(start + (i * step));
}
return r;
}
Copy link
Member

Choose a reason for hiding this comment

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

ftr lodash also has this, but maybe not worth pulling it in for the sake of a 5 line function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 next time a need a lodash method I'll import it

@bwindels bwindels merged commit 5e8a3db into master Sep 14, 2018
@bwindels bwindels deleted the bwindels/lltests branch September 14, 2018 12:49
@bwindels
Copy link
Contributor Author

Part of element-hq/element-web#7287

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants