test: add TIMEOUT_MULTIPLIER variable

This commit is contained in:
Anton Barboza 2023-04-25 18:18:02 -03:00
parent 3f5194fbb4
commit 231c5156ba

View File

@ -1,9 +1,10 @@
const CI = process.env.CI === 'true';
const TIMEOUT_MULTIPLIER = Number(process.env.TIMEOUT_MULTIPLIER) | 1;
// GLOBAL TESTS VARS
exports.ELEMENT_WAIT_TIME = CI ? 10000 : 5000;
exports.ELEMENT_WAIT_LONGER_TIME = CI ? 20000 : 10000;
exports.ELEMENT_WAIT_EXTRA_LONG_TIME = CI ? 30000 : 15000;
exports.ELEMENT_WAIT_TIME = CI ? 10000 : 5000 * TIMEOUT_MULTIPLIER;
exports.ELEMENT_WAIT_LONGER_TIME = CI ? 20000 : 10000 * TIMEOUT_MULTIPLIER;
exports.ELEMENT_WAIT_EXTRA_LONG_TIME = CI ? 30000 : 15000 * TIMEOUT_MULTIPLIER;
exports.LOOP_INTERVAL = 1200;
exports.USER_LIST_VLIST_BOTS_LISTENING = 50;
@ -18,7 +19,7 @@ exports.MAX_PARTICIPANTS_TO_JOIN = 4;
// MEDIA CONNECTION TIMEOUTS
exports.VIDEO_LOADING_WAIT_TIME = 15000;
exports.UPLOAD_PDF_WAIT_TIME = CI ? 40000 : 20000;
exports.UPLOAD_PDF_WAIT_TIME = CI ? 40000 : 20000 * TIMEOUT_MULTIPLIER;
exports.CUSTOM_MEETING_ID = 'custom-meeting';
exports.PARAMETER_HIDE_PRESENTATION_TOAST = 'userdata-bbb_custom_style=.presentationUploaderToast{display: none;}.currentPresentationToast{display:none;}';