Revert ES6ification of end-to-end tests and add instructions for Windows
Because the tests are run directly by node, we have to use the CommonJS module syntax. We could run the thing through babel, but then we just have another babel. Windows instructions are from experience and may not be optimized.
This commit is contained in:
parent
9f04f94c65
commit
e66f2a6c3f
24 changed files with 103 additions and 52 deletions
|
@ -22,7 +22,7 @@ const {receiveMessage} = require('../usecases/timeline');
|
|||
const {createRoom} = require('../usecases/create-room');
|
||||
const changeRoomSettings = require('../usecases/room-settings');
|
||||
|
||||
export default async function roomDirectoryScenarios(alice, bob) {
|
||||
module.exports = async function roomDirectoryScenarios(alice, bob) {
|
||||
console.log(" creating a public room and join through directory:");
|
||||
const room = 'test';
|
||||
await createRoom(alice, room);
|
||||
|
|
|
@ -24,7 +24,7 @@ const changeRoomSettings = require('../usecases/room-settings');
|
|||
const {startSasVerifcation, acceptSasVerification} = require('../usecases/verify');
|
||||
const assert = require('assert');
|
||||
|
||||
export default async function e2eEncryptionScenarios(alice, bob) {
|
||||
module.exports = async function e2eEncryptionScenarios(alice, bob) {
|
||||
console.log(" creating an e2e encrypted room and join through invite:");
|
||||
const room = "secrets";
|
||||
await createRoom(bob, room);
|
||||
|
|
|
@ -28,7 +28,7 @@ const {getMembersInMemberlist} = require('../usecases/memberlist');
|
|||
const changeRoomSettings = require('../usecases/room-settings');
|
||||
const assert = require('assert');
|
||||
|
||||
export default async function lazyLoadingScenarios(alice, bob, charlies) {
|
||||
module.exports = async function lazyLoadingScenarios(alice, bob, charlies) {
|
||||
console.log(" creating a room for lazy loading member scenarios:");
|
||||
const charly1to5 = charlies.slice("charly-1..5", 0, 5);
|
||||
const charly6to10 = charlies.slice("charly-6..10", 5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue