You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
show browser version when running tests
This commit is contained in:
@ -22,8 +22,14 @@ const lazyLoadingScenarios = require('./scenarios/lazy-loading');
|
|||||||
const e2eEncryptionScenarios = require('./scenarios/e2e-encryption');
|
const e2eEncryptionScenarios = require('./scenarios/e2e-encryption');
|
||||||
|
|
||||||
module.exports = async function scenario(createSession, restCreator) {
|
module.exports = async function scenario(createSession, restCreator) {
|
||||||
|
let firstUser = true;
|
||||||
async function createUser(username) {
|
async function createUser(username) {
|
||||||
const session = await createSession(username);
|
const session = await createSession(username);
|
||||||
|
if (firstUser) {
|
||||||
|
// only show browser version for first browser opened
|
||||||
|
console.log(`running tests on ${await session.browser.version()} ...`);
|
||||||
|
firstUser = false;
|
||||||
|
}
|
||||||
await signup(session, session.username, 'testtest', session.hsUrl);
|
await signup(session, session.username, 'testtest', session.hsUrl);
|
||||||
return session;
|
return session;
|
||||||
}
|
}
|
||||||
|
1
start.js
1
start.js
@ -35,7 +35,6 @@ const hsUrl = 'http://localhost:5005';
|
|||||||
|
|
||||||
async function runTests() {
|
async function runTests() {
|
||||||
let sessions = [];
|
let sessions = [];
|
||||||
console.log("running tests ...");
|
|
||||||
const options = {
|
const options = {
|
||||||
slowMo: program.slowMo ? 20 : undefined,
|
slowMo: program.slowMo ? 20 : undefined,
|
||||||
devtools: program.devTools,
|
devtools: program.devTools,
|
||||||
|
Reference in New Issue
Block a user