2022-06-08 02:52:22 +08:00
|
|
|
const CI = process.env.CI === 'true';
|
2023-05-04 23:42:35 +08:00
|
|
|
const TIMEOUT_MULTIPLIER = Number(process.env.TIMEOUT_MULTIPLIER);
|
|
|
|
const MULTIPLIER = CI ? TIMEOUT_MULTIPLIER || 2 : TIMEOUT_MULTIPLIER || 1;
|
2022-06-08 02:52:22 +08:00
|
|
|
|
2021-11-20 01:32:56 +08:00
|
|
|
// GLOBAL TESTS VARS
|
2023-05-04 23:42:35 +08:00
|
|
|
exports.ELEMENT_WAIT_TIME = 5000 * MULTIPLIER;
|
|
|
|
exports.ELEMENT_WAIT_LONGER_TIME = 10000 * MULTIPLIER;
|
|
|
|
exports.ELEMENT_WAIT_EXTRA_LONG_TIME = 15000 * MULTIPLIER;
|
2021-11-27 04:01:41 +08:00
|
|
|
exports.LOOP_INTERVAL = 1200;
|
2021-12-02 02:10:05 +08:00
|
|
|
exports.USER_LIST_VLIST_BOTS_LISTENING = 50;
|
2021-11-27 04:01:41 +08:00
|
|
|
|
2021-12-01 22:16:37 +08:00
|
|
|
// STRESS TESTS VARS
|
|
|
|
exports.JOIN_AS_MODERATOR_TEST_ROUNDS = 15;
|
|
|
|
exports.MAX_JOIN_AS_MODERATOR_FAIL_RATE = 0.05;
|
|
|
|
exports.BREAKOUT_ROOM_INVITATION_TEST_ROUNDS = 20;
|
2022-02-21 22:50:29 +08:00
|
|
|
exports.JOIN_TWO_USERS_ROUNDS = 20;
|
|
|
|
exports.JOIN_TWO_USERS_KEEPING_CONNECTED_ROUNDS = 20;
|
2022-02-22 01:35:49 +08:00
|
|
|
exports.JOIN_TWO_USERS_EXCEEDING_MAX_PARTICIPANTS = 20;
|
2022-02-21 22:50:29 +08:00
|
|
|
exports.MAX_PARTICIPANTS_TO_JOIN = 4;
|
2021-12-01 22:16:37 +08:00
|
|
|
|
2021-11-27 04:01:41 +08:00
|
|
|
// MEDIA CONNECTION TIMEOUTS
|
2021-12-01 13:36:20 +08:00
|
|
|
exports.VIDEO_LOADING_WAIT_TIME = 15000;
|
2023-05-19 20:31:38 +08:00
|
|
|
exports.UPLOAD_PDF_WAIT_TIME = 25000 * MULTIPLIER;
|
2022-08-30 04:07:44 +08:00
|
|
|
|
|
|
|
exports.CUSTOM_MEETING_ID = 'custom-meeting';
|
2024-09-14 03:25:57 +08:00
|
|
|
exports.PARAMETER_HIDE_PRESENTATION_TOASTS = 'userdata-bbb_custom_style=.presentationUploaderToast,.currentPresentationToast{display: none;}';
|