update catch parameter to 'err'

This commit is contained in:
Anton 2021-08-26 11:13:18 -03:00
parent 056805b30b
commit ade947c4dc
38 changed files with 326 additions and 326 deletions

View File

@ -23,8 +23,8 @@ const audioTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -45,8 +45,8 @@ const audioTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -28,8 +28,8 @@ const breakoutTest = () => {
await test.page1.stopRecording();
screenshot = await page2[2].screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -55,8 +55,8 @@ const breakoutTest = () => {
await test.page1.stopRecording();
screenshot = await page2[2].screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -82,8 +82,8 @@ const breakoutTest = () => {
await test.page1.stopRecording();
screenshot = await page2[2].screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -109,8 +109,8 @@ const breakoutTest = () => {
await test.page1.stopRecording();
screenshot = await page2[2].screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -136,8 +136,8 @@ const breakoutTest = () => {
await test.page1.stopRecording();
screenshot = await page2[2].screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -51,8 +51,8 @@ class Create {
const responseLoggedIn = await this.page1.page.evaluate(util.getTestElement, ue.waitingUsersBtn);
await this.page1.screenshot(`${testName}`, `06-after-viewer-acceptance-[${this.page1.meetingId}]`);
return responseLoggedIn;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -77,8 +77,8 @@ class Create {
const responseLoggedIn = await this.page3.page.evaluate(util.getTestElement, e.whiteboard);
await this.page3.screenshot(`${testName}`, `06-after-viewer-connection-[${this.page1.meetingId}]`);
return responseLoggedIn;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -102,8 +102,8 @@ class Create {
const responseLoggedIn = await this.page3.page.evaluate(util.getTestElement, ue.joinMeetingDemoPage);
await this.page3.screenshot(`${testName}`, `06-after-viewer-gets-denied-[${this.page1.meetingId}]`);
return responseLoggedIn;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -148,8 +148,8 @@ class Create {
if (process.env.GENERATE_EVIDENCES === 'true') {
await page2[2].screenshot({ path: path.join(__dirname, `../${process.env.TEST_FOLDER}/test-${today}-${testName}/screenshots/04-breakout-page02-after-closing-audio-modal.png`) });
}
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
}
}
@ -165,8 +165,8 @@ class Create {
await this.page1.screenshot(`${testName}`, `05-page01-fail-${testName}`);
return false;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -273,8 +273,8 @@ class Create {
await this.page3.init(Page.getArgs(), this.page1.meetingId, { ...params, fullName: 'Moderator3' }, undefined, testName);
await this.page3.closeAudioModal();
}
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
}
}
@ -283,8 +283,8 @@ class Create {
try {
await this.page1.close();
await this.page2.close();
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
}
}
@ -292,8 +292,8 @@ class Create {
async closePage(page) {
try {
await page.close();
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
}
}
}

View File

@ -91,8 +91,8 @@ class Join extends Create {
const resp = await this.page3.page.evaluate(async () => await document.querySelectorAll('span[class^="alreadyConnected--"]') !== null);
return resp === true;
}
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}
@ -103,8 +103,8 @@ class Join extends Create {
await this.page1.close();
await this.page2.close();
await this.page3.close();
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
}
}
}

View File

@ -30,8 +30,8 @@ const chatTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -54,8 +54,8 @@ const chatTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -78,8 +78,8 @@ const chatTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -102,8 +102,8 @@ const chatTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -127,8 +127,8 @@ const chatTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -152,8 +152,8 @@ const chatTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -175,8 +175,8 @@ const chatTest = () => {
await test.page3.startRecording();
screenshot = await test.page3.page.screenshot();
await test.page3.logger('end of ', testName);
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePage(test.page3);
}

View File

@ -37,8 +37,8 @@ class Clear extends Page {
const chatResp = await this.waitForSelector(e.chatClearMessageText, ELEMENT_WAIT_TIME).then(() => true);
return chat0 && chatResp;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -31,8 +31,8 @@ class Copy extends Page {
await context.overridePermissions(process.env.BBB_SERVER_URL, ['clipboard-read']);
const copiedText = await this.page.evaluate(async () => await navigator.clipboard.readText());
return copiedText.includes(`${p.fullName}: ${e.message}`);
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -25,8 +25,8 @@ class Poll extends Notifications {
// 1 message
const chat1 = await this.page3.page.evaluate(() => document.querySelectorAll('p[data-test="chatPollMessageText"]').length === 1);
return chat0 === chat1;
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}

View File

@ -21,8 +21,8 @@ class Save extends Page {
let clicked = '';
clicked = await this.page.addListener('click', () => document.addEventListener('click'));
return clicked !== '';
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -29,8 +29,8 @@ class Send extends Page {
// 1 message
const chat1 = await this.page.evaluate((chatSelector) => document.querySelectorAll(chatSelector).length === 1, e.chatUserMessageText);
return chat0 === chat1;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -36,8 +36,8 @@ class Page {
try {
const settings = yaml.load(fs.readFileSync(path.join(__dirname, '../../../bigbluebutton-html5/private/config/settings.yml'), 'utf8'));
return settings;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
}
}
@ -88,8 +88,8 @@ class Page {
await this.waitForSelector(ue.anyUser, ELEMENT_WAIT_TIME);
await this.getMetrics(testFolderName);
}
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
}
}
@ -232,8 +232,8 @@ class Page {
try {
await this.page.waitForSelector(el, { visible: false, timeout: timeout });
return true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -424,8 +424,8 @@ class Page {
const createFile = async () => {
try {
fs.appendFileSync(metricsFile, `${JSON.stringify(pageMetricsObj)},\n`);
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
}
};
await createFile();

View File

@ -26,8 +26,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -49,8 +49,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -72,8 +72,8 @@ const customParametersTest = () => {
await test.page2.stopRecording();
screenshot = await test.page2.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page2);
}
@ -95,8 +95,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -118,8 +118,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -141,8 +141,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -164,8 +164,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -188,8 +188,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -211,8 +211,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -234,8 +234,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -257,8 +257,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -280,8 +280,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -304,8 +304,8 @@ const customParametersTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -327,8 +327,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -351,8 +351,8 @@ const customParametersTest = () => {
await test.page2.stopRecording();
screenshot = await test.page2.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -374,8 +374,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -397,8 +397,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -421,8 +421,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -444,8 +444,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -467,8 +467,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -491,8 +491,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -514,8 +514,8 @@ const customParametersTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -539,8 +539,8 @@ const customParametersTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -560,8 +560,8 @@ const customParametersTest = () => {
response = await test.recordMeeting(testName, Page.getArgs(), undefined, `${c.recordMeeting}`);
await test.page1.stopRecording();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -581,8 +581,8 @@ const customParametersTest = () => {
response = await test.skipVideoPreview(testName, Page.getArgs(), undefined, `${c.skipVideoPreview}`);
await test.page1.stopRecording();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -602,8 +602,8 @@ const customParametersTest = () => {
response = await test.skipVideoPreviewOnFirstJoin(testName, Page.getArgs(), undefined, `${c.skipVideoPreviewOnFirstJoin}`);
await test.page1.stopRecording();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -624,8 +624,8 @@ const customParametersTest = () => {
response = await test.mirrorOwnWebcam(testName, Page.getArgs(), undefined, `${c.mirrorOwnWebcam}`);
await test.page1.stopRecording();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -645,8 +645,8 @@ const customParametersTest = () => {
response = await test.showParticipantsOnLogin(testName, Page.getArgs(), undefined, `${c.showParticipantsOnLogin}`);
await test.page1.stopRecording();
await page.logger('after ', testName);
} catch (e) {
await page.logger(e);
} catch (err) {
await page.logger(err);
} finally {
await test.closePage(test.page1);
}

View File

@ -22,8 +22,8 @@ async function listenOnlyMode(test) {
return audibleButton !== false;
});
return resp;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
}
}
@ -38,8 +38,8 @@ async function forceListenOnly(test) {
return audibleNotification !== false;
});
return resp;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
}
}
@ -50,8 +50,8 @@ async function skipCheck(test) {
await test.waitForSelector(ce.muteBtn, ELEMENT_WAIT_TIME);
const resp2 = await test.page.evaluate(async () => await document.querySelectorAll('button[aria-label="Mute"]').length !== 0);
return resp1 === true && resp2 === true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
}
}
@ -79,8 +79,8 @@ async function zoomIn(test) {
}, 100);
});
return true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
return false;
}
}
@ -92,8 +92,8 @@ async function zoomOut(test) {
document.querySelector('button[aria-label="Zoom in"]').scrollBy(10, 0);
}, 100);
}); return true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
return false;
}
}
@ -114,8 +114,8 @@ async function poll(page1, page2) {
await page1.waitForSelector(ne.publishPollingResults, ELEMENT_WAIT_TIME);
await page1.click(ne.publishPollingResults, true);
return true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
return false;
}
}
@ -125,8 +125,8 @@ async function previousSlide(test) {
await test.waitForSelector(pe.prevSlide, ELEMENT_WAIT_TIME);
await test.click(pe.prevSlide, true);
return true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
return false;
}
}
@ -136,8 +136,8 @@ async function nextSlide(test) {
await test.waitForSelector(pe.nextSlide, ELEMENT_WAIT_TIME);
await test.click(pe.nextSlide, true);
return true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
return false;
}
}
@ -162,8 +162,8 @@ async function presetationUpload(test) {
await elementHandle.uploadFile(path.join(__dirname, '../media/DifferentSizes.pdf'));
await test.click(ce.confirmBtn, true);
return true;
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
return false;
}
}
@ -173,8 +173,8 @@ function encodeCustomParams(param) {
let splited = param.split('=');
splited[1] = encodeURIComponent(splited[1]).replace(/%20/g, '+');
return splited.join('=');
} catch (e) {
console.log(e);
} catch (err) {
console.log(err);
}
}

View File

@ -36,8 +36,8 @@ class Trigger extends Page {
const findUnauthorized = await this.page.evaluate(util.countTestElements, e.unauthorized) === true;
await this.logger('Check if Unauthorized message appears => ', findUnauthorized);
return meteorStatusConfirm && getAudioButton && findUnauthorized;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -93,8 +93,8 @@ class Trigger extends Page {
const findUnauthorized = await this.page.evaluate(util.countTestElements, e.unauthorized) === true;
await this.logger('Check if Unauthorized message appears => ', findUnauthorized);
return meteorStatusConfirm && getAudioButton && findUnauthorized;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -23,8 +23,8 @@ const notificationsTest = () => {
await test.page1.logger('end of ', testName);
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.page1.logger('Save Setting notification !');
@ -44,8 +44,8 @@ const notificationsTest = () => {
await test.page1.logger('end of ', testName);
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.page1.logger('Public Chat notification !');
@ -65,8 +65,8 @@ const notificationsTest = () => {
await test.page1.logger('end of ', testName);
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.page1.logger('Private Chat notification !');
@ -86,8 +86,8 @@ const notificationsTest = () => {
await test.page3.logger('end of ', testName);
await test.page3.stopRecording();
screenshot = await test.page3.page.screenshot();
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePages();
await test.page3.logger('User join notification !');
@ -107,8 +107,8 @@ const notificationsTest = () => {
await test.page3.logger('end of ', testName);
await test.page3.stopRecording();
screenshot = await test.page3.page.screenshot();
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePage(test.page3);
await test.page3.logger('Presentation upload notification !');
@ -129,8 +129,8 @@ const notificationsTest = () => {
await test.page3.logger('end of ', testName);
await test.page3.stopRecording();
screenshot = await test.page3.page.screenshot();
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePage(test.page3);
await test.page3.logger('Poll results notification !');
@ -150,8 +150,8 @@ const notificationsTest = () => {
await test.page3.logger('end of ', testName);
await test.page3.stopRecording();
screenshot = await test.page3.page.screenshot();
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePage(test.page3);
await test.page3.logger('Screenshare notification !');
@ -171,8 +171,8 @@ const notificationsTest = () => {
await test.page3.logger('end of ', testName);
await test.page3.stopRecording();
screenshot = await test.page3.page.screenshot();
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePage(test.page3);
await test.page3.logger('Audio notification !');

View File

@ -46,8 +46,8 @@ class Notifications extends MultiUsers {
const resp = await util.getLastToastValue(this.page1) === ne.savedSettingsToast;
await this.page1.screenshot(`${testName}`, `04-page01-saved-Settings-toast-${testName}`);
return resp === true;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -71,8 +71,8 @@ class Notifications extends MultiUsers {
const lastToast = await util.getLastToastValue(this.page1);
await this.page1.screenshot(`${testName}`, `06-page01-public-chat-toast-${testName}`);
return expectedToastValue === lastToast;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -96,8 +96,8 @@ class Notifications extends MultiUsers {
const lastToast = await util.getLastToastValue(this.page1);
await this.page1.screenshot(`${testName}`, `06-page01-public-chat-toast-${testName}`);
return expectedToastValue === lastToast;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -108,8 +108,8 @@ class Notifications extends MultiUsers {
await util.popupMenu(page);
await util.enableUserJoinPopup(page);
await util.saveSettings(page);
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -131,8 +131,8 @@ class Notifications extends MultiUsers {
);
await this.page3.screenshot(`${testName}`, `04-page03-user-join-toast-${testName}`);
return true;
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}
@ -167,8 +167,8 @@ class Notifications extends MultiUsers {
);
await this.page3.screenshot(`${testName}`, `06-page03-presentation-change-toast-${testName}`);
return true;
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}
@ -186,8 +186,8 @@ class Notifications extends MultiUsers {
const resp = await util.getLastToastValue(this.page3);
await this.page3.screenshot(`${testName}`, `04-page03-poll-toast-${testName}`);
return resp === true;
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}
@ -202,8 +202,8 @@ class Notifications extends MultiUsers {
const resp = await util.getLastToastValue(this.page3) === ne.joinAudioToast;
await this.page3.screenshot(`${testName}`, `03-page03-audio-toast-${testName}`);
return resp === true;
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}
@ -220,8 +220,8 @@ class Notifications extends MultiUsers {
const response = await util.getLastToastValue(this.page3);
await this.page3.screenshot(`${testName}`, `04-page03-screenshare-toast-${testName}`);
return response === true;
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}
@ -230,8 +230,8 @@ class Notifications extends MultiUsers {
try {
await this.page3.close();
await this.page4.close();
} catch (e) {
await this.page3.logger(e);
} catch (err) {
await this.page3.logger(err);
return false;
}
}

View File

@ -29,8 +29,8 @@ const pollingTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -52,8 +52,8 @@ const pollingTest = () => {
await test.page3.logger('end of ', testName);
await test.page3.stopRecording();
screenshot = await test.page3.page.screenshot();
} catch (e) {
await test.page3.logger(e);
} catch (err) {
await test.page3.logger(err);
} finally {
await test.closePage(test.page3);
}
@ -75,8 +75,8 @@ const pollingTest = () => {
await test.page1.logger('end of ', testName);
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -99,8 +99,8 @@ const pollingTest = () => {
await test.page1.stopRecording();
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}

View File

@ -14,8 +14,8 @@ class Polling extends Page {
const resp = this.page.evaluate(() => document.querySelectorAll('[data-test="pollMenuButton"]').length === 1);
return resp;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -25,8 +25,8 @@ const presentationTest = () => {
await test.stopRecording(testName);
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -48,8 +48,8 @@ const presentationTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -30,8 +30,8 @@ class Slide extends Page {
const svg2 = await this.page.evaluate(async () => await document.querySelector('svg g g g').outerHTML.indexOf('/svg/1') !== -1);
return svg0 === true && svg1 === true && svg2 === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -48,8 +48,8 @@ class Upload extends Page {
await this.logger(slides1);
return slides0 !== slides1;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -27,8 +27,8 @@ const screenShareTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -48,8 +48,8 @@ const screenShareTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -69,8 +69,8 @@ const screenShareTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -90,8 +90,8 @@ const screenShareTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -17,8 +17,8 @@ class ShareScreen extends Page {
await sleep(5000);
const response = await util.getScreenShareContainer(this);
return response;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -30,8 +30,8 @@ class ShareScreen extends Page {
await this.closeAudioModal();
const screenshareBtn = await this.page.evaluate(() => document.querySelectorAll('button[aria-label="Share your screen"]').length === 0) === true;
return screenshareBtn;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -26,8 +26,8 @@ const sharedNotesTest = () => {
await test.page1.stopRecording();
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close();
}

View File

@ -10,8 +10,8 @@ const stressTest = () => {
await test.logger('begin of ', testName);
response = await test.moderatorAsPresenter(testName);
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
}
expect(response).toBe(true);
});

View File

@ -31,9 +31,9 @@ class Stress extends Page {
if (failureCount > maxFailRate) return false;
}
return true;
} catch (e) {
} catch (err) {
await this.close();
this.logger(e);
this.logger(err);
return false;
}
}

View File

@ -20,8 +20,8 @@ const triggerTest = () => {
await test.init(Page.getArgs(), undefined, undefined, undefined, testName);
response = await test.triggerMeteorDisconnect(testName);
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -39,8 +39,8 @@ const triggerTest = () => {
await test.init(Page.getArgs(), undefined, undefined, undefined, testName);
response = await test.triggerNetworkServiceDisconnection(testName);
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -31,8 +31,8 @@ const userTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -55,8 +55,8 @@ const userTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -82,8 +82,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end osf ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -106,8 +106,8 @@ const userTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -130,8 +130,8 @@ const userTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -154,8 +154,8 @@ const userTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -178,8 +178,8 @@ const userTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -202,8 +202,8 @@ const userTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.closePage(test.page1);
}
@ -231,8 +231,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -257,8 +257,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.closePage(test.page3);
@ -284,8 +284,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.closePage(test.page3);
@ -311,8 +311,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.closePage(test.page3);
@ -339,8 +339,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -366,8 +366,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -393,8 +393,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}
@ -420,8 +420,8 @@ const userTest = () => {
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
}

View File

@ -47,8 +47,8 @@ class MultiUsers {
await util.sendPublicChatMessage(this.page1, this.page2);
const chat1 = await this.page1.page.evaluate(() => document.querySelectorAll('p[data-test="chatUserMessageText"]').length);
return chat0 !== chat1;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -61,8 +61,8 @@ class MultiUsers {
await sleep(2000);
const chat1 = await this.page1.page.evaluate(() => document.querySelectorAll('p[data-test="chatUserMessageText"]').length);
return chat0 !== chat1;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -71,8 +71,8 @@ class MultiUsers {
try {
const checks = await this.checkForOtherUser();
return checks.firstCheck !== false && checks.secondCheck !== false;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -162,8 +162,8 @@ class MultiUsers {
const receivedAnswerFound = await this.page1.page.evaluate(utilCustomParams.countTestElements, ple.receivedAnswer);
await sleep(2000);
return receivedAnswerFound === true;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -179,8 +179,8 @@ class MultiUsers {
await sleep(2000);
const resp = await this.page1.page.evaluate(async () => await document.querySelector('[data-test="multiWhiteboardTool"]').children[0].innerText === '1');
return resp === true;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -195,8 +195,8 @@ class MultiUsers {
await sleep(2000);
const resp = await this.page2.page.evaluate(utilCustomParams.countTestElements, we.lowerHandLabel);
return resp === true;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -209,8 +209,8 @@ class MultiUsers {
await sleep(2000);
const resp = await this.page2.page.evaluate(utilCustomParams.countTestElements, we.raiseHandLabel);
return resp === true;
} catch (e) {
await this.page2.logger(e);
} catch (err) {
await this.page2.logger(err);
return false;
}
}
@ -221,8 +221,8 @@ class MultiUsers {
const avatarInToastElementColor = await this.page1.page.$eval(we.avatarsWrapperAvatar, (elem) => getComputedStyle(elem).backgroundColor);
const avatarInUserListColor = await this.page1.page.$eval('[data-test="userListItem"] > div [data-test="userAvatar"]', (elem) => getComputedStyle(elem).backgroundColor);
return avatarInToastElementColor === avatarInUserListColor;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -241,8 +241,8 @@ class MultiUsers {
const connectionStatusItemEmpty = await this.page1.page.evaluate(utilUser.countTestElements, ue.connectionStatusItemEmpty) === false;
const connectionStatusOfflineUser = await this.page1.page.evaluate(utilUser.countTestElements, ue.connectionStatusOfflineUser) === true;
return connectionStatusOfflineUser && connectionStatusItemEmpty;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -254,8 +254,8 @@ class MultiUsers {
const userlistPanel = await this.page1.page.evaluate(utilUser.countTestElements, ue.chatButton) === false;
const chatPanel = await this.page2.page.evaluate(utilUser.countTestElements, ue.chatButton) === false;
return userlistPanel && chatPanel;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -271,8 +271,8 @@ class MultiUsers {
const onChatPanel = await this.page2.page.evaluate(utilUser.countTestElements, cu.hidePresentation) === false;
await sleep(2000);
return onUserListPanel && onChatPanel;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -287,8 +287,8 @@ class MultiUsers {
const onChatPanel = await this.page2.isNotVisible(ue.chatButton, ELEMENT_WAIT_TIME) === true;
await sleep(2000);
return whiteboard && onChatPanel;
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -298,8 +298,8 @@ class MultiUsers {
try {
await page1.close();
await page2.close();
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -307,8 +307,8 @@ class MultiUsers {
async closePage(page) {
try {
await page.close();
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}

View File

@ -23,8 +23,8 @@ class Status extends Page {
await this.waitForSelector(e.clearStatus, ELEMENT_WAIT_TIME);
await this.click(e.clearStatus, true);
return resp1 === resp2;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -37,8 +37,8 @@ class Status extends Page {
const response = await this.page.evaluate(util.countTestElements, e.mobileUser) === true;
return response === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -48,8 +48,8 @@ class Status extends Page {
await util.connectionStatus(this.page);
const resp = await this.page.evaluate(util.countTestElements, e.connectionStatusModal) === true;
return resp === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -66,8 +66,8 @@ class Status extends Page {
await sleep(2000);
const webcamsIsDisabledInDataSaving = await this.page.evaluate(util.countTestElements, e.webcamsIsDisabledInDataSaving) === true;
return webcamsIsDisabledInDataSaving === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -85,8 +85,8 @@ class Status extends Page {
await sleep(2000);
const webcamsIsDisabledInDataSaving = await this.page.evaluate(util.countTestElements, e.screenshareLocked) === true;
return webcamsIsDisabledInDataSaving === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -103,8 +103,8 @@ class Status extends Page {
const connectionStatusItemEmpty = await this.page.evaluate(util.countTestElements, e.connectionStatusItemEmpty) === false;
const connectionStatusItemUser = await this.page.evaluate(util.countTestElements, e.connectionStatusItemUser) === true;
return connectionStatusItemUser && connectionStatusItemEmpty;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -18,8 +18,8 @@ const virtualizedListTest = () => {
await test.page1.stopRecording();
screenshot = await test.page1.page.screenshot();
await test.page1.logger('end of ', testName);
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close();
}

View File

@ -24,8 +24,8 @@ class VirtualizeList {
await this.page1.getMetrics();
}
await this.page1.getMetrics();
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
}
}
@ -42,8 +42,8 @@ class VirtualizeList {
} if ((USER_LIST_VLIST_VISIBLE_USERS !== totalNumberOfUsersMongo) && (USER_LIST_VLIST_VISIBLE_USERS < totalNumberOfUsersMongo)) {
return true;
}
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
return false;
}
}
@ -52,8 +52,8 @@ class VirtualizeList {
try {
this.page1.close();
this.pagesArray.forEach(page => page.close());
} catch (e) {
await this.page1.logger(e);
} catch (err) {
await this.page1.logger(err);
}
}
}

View File

@ -24,8 +24,8 @@ const webcamTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -46,8 +46,8 @@ const webcamTest = () => {
await test.stopRecording();
screenshot = await test.page.screenshot();
await test.logger('end of ', testName);
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -11,8 +11,8 @@ class Check extends Share {
await util.enableWebcam(page1, page2);
const respUser = await util.compareWebcamsContents(this);
return respUser === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -25,8 +25,8 @@ class Check extends Share {
await util.enableWebcam(this, videoPreviewTimeout);
const respUser = await util.webcamContentCheck(this);
return respUser === true;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -14,8 +14,8 @@ class Share extends Page {
const videoPreviewTimeout = parseInt(parsedSettings.public.kurento.gUMTimeout);
const response = await util.enableWebcam(this, videoPreviewTimeout);
return response;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -26,8 +26,8 @@ class Share extends Page {
const parsedSettings = await this.getSettingsYaml();
const videoPreviewTimeout = parseInt(parsedSettings.public.kurento.gUMTimeout);
await util.enableWebcam(this, videoPreviewTimeout);
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
}
}
@ -45,8 +45,8 @@ class Share extends Page {
this.logger(testName, ' failed');
return false;
}
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}

View File

@ -24,8 +24,8 @@ const webcamLayoutTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}

View File

@ -28,8 +28,8 @@ const whiteboardTest = () => {
await test.logger('end of ', testName);
await test.stopRecording();
screenshot = await test.page.screenshot();
} catch (e) {
await test.logger(e);
} catch (err) {
await test.logger(err);
} finally {
await test.close();
}
@ -56,8 +56,8 @@ const whiteboardTest = () => {
await test.page1.stopRecording();
await test.page2.stopRecording();
screenshot = await test.page1.page.screenshot();
} catch (e) {
await test.page1.logger(e);
} catch (err) {
await test.page1.logger(err);
} finally {
await test.close(test.page1, test.page2);
await test.closePage(test.page3);

View File

@ -30,8 +30,8 @@ class Draw extends Page {
shapes1 !== '<g></g>';
return shapes0 && shapes1;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
return false;
}
}
@ -41,8 +41,8 @@ class Draw extends Page {
await this.waitForSelector('g[clip-path="url(#viewBox)"]', ELEMENT_WAIT_TIME);
const shapes = await this.page.evaluate(() => document.querySelector('svg g[clip-path]').children[1].outerHTML);
return shapes;
} catch (e) {
await this.logger(e);
} catch (err) {
await this.logger(err);
}
}
}