mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 10:15:43 +03:00
split up ll tests in several functions
This commit is contained in:
parent
1725e7524b
commit
5d06c65ce5
1 changed files with 13 additions and 4 deletions
|
@ -29,10 +29,16 @@ const {enableLazyLoading} = require('../usecases/settings');
|
|||
module.exports = async function lazyLoadingScenarios(alice, bob, charlies) {
|
||||
console.log(" creating a room for lazy loading member scenarios:");
|
||||
await enableLazyLoading(alice);
|
||||
const room = "Lazy Loading Test";
|
||||
const alias = "#lltest:localhost";
|
||||
const charlyMsg1 = "hi bob!";
|
||||
const charlyMsg2 = "how's it going??";
|
||||
await setupRoomWithBobAliceAndCharlies(alice, bob, charlies);
|
||||
await checkPaginatedDisplayNames(alice, charlies);
|
||||
}
|
||||
|
||||
const room = "Lazy Loading Test";
|
||||
const alias = "#lltest:localhost";
|
||||
const charlyMsg1 = "hi bob!";
|
||||
const charlyMsg2 = "how's it going??";
|
||||
|
||||
async function setupRoomWithBobAliceAndCharlies(alice, bob, charlies) {
|
||||
await createRoom(bob, room);
|
||||
await changeRoomSettings(bob, {directory: true, visibility: "public_no_guests", alias});
|
||||
// wait for alias to be set by server after clicking "save"
|
||||
|
@ -47,6 +53,9 @@ module.exports = async function lazyLoadingScenarios(alice, bob, charlies) {
|
|||
}
|
||||
bob.log.unmute().done();
|
||||
await join(alice, alias);
|
||||
}
|
||||
|
||||
async function checkPaginatedDisplayNames(alice, charlies) {
|
||||
await scrollToTimelineTop(alice);
|
||||
//alice should see 2 messages from every charly with
|
||||
//the correct display name
|
||||
|
|
Loading…
Reference in a new issue