update catch parameter to 'err'
This commit is contained in:
parent
056805b30b
commit
ade947c4dc
@ -23,8 +23,8 @@ const audioTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -45,8 +45,8 @@ const audioTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,8 @@ const breakoutTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await page2[2].screenshot();
|
screenshot = await page2[2].screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -55,8 +55,8 @@ const breakoutTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await page2[2].screenshot();
|
screenshot = await page2[2].screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -82,8 +82,8 @@ const breakoutTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await page2[2].screenshot();
|
screenshot = await page2[2].screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -109,8 +109,8 @@ const breakoutTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await page2[2].screenshot();
|
screenshot = await page2[2].screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -136,8 +136,8 @@ const breakoutTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await page2[2].screenshot();
|
screenshot = await page2[2].screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -51,8 +51,8 @@ class Create {
|
|||||||
const responseLoggedIn = await this.page1.page.evaluate(util.getTestElement, ue.waitingUsersBtn);
|
const responseLoggedIn = await this.page1.page.evaluate(util.getTestElement, ue.waitingUsersBtn);
|
||||||
await this.page1.screenshot(`${testName}`, `06-after-viewer-acceptance-[${this.page1.meetingId}]`);
|
await this.page1.screenshot(`${testName}`, `06-after-viewer-acceptance-[${this.page1.meetingId}]`);
|
||||||
return responseLoggedIn;
|
return responseLoggedIn;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -77,8 +77,8 @@ class Create {
|
|||||||
const responseLoggedIn = await this.page3.page.evaluate(util.getTestElement, e.whiteboard);
|
const responseLoggedIn = await this.page3.page.evaluate(util.getTestElement, e.whiteboard);
|
||||||
await this.page3.screenshot(`${testName}`, `06-after-viewer-connection-[${this.page1.meetingId}]`);
|
await this.page3.screenshot(`${testName}`, `06-after-viewer-connection-[${this.page1.meetingId}]`);
|
||||||
return responseLoggedIn;
|
return responseLoggedIn;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -102,8 +102,8 @@ class Create {
|
|||||||
const responseLoggedIn = await this.page3.page.evaluate(util.getTestElement, ue.joinMeetingDemoPage);
|
const responseLoggedIn = await this.page3.page.evaluate(util.getTestElement, ue.joinMeetingDemoPage);
|
||||||
await this.page3.screenshot(`${testName}`, `06-after-viewer-gets-denied-[${this.page1.meetingId}]`);
|
await this.page3.screenshot(`${testName}`, `06-after-viewer-gets-denied-[${this.page1.meetingId}]`);
|
||||||
return responseLoggedIn;
|
return responseLoggedIn;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -148,8 +148,8 @@ class Create {
|
|||||||
if (process.env.GENERATE_EVIDENCES === 'true') {
|
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`) });
|
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) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -165,8 +165,8 @@ class Create {
|
|||||||
await this.page1.screenshot(`${testName}`, `05-page01-fail-${testName}`);
|
await this.page1.screenshot(`${testName}`, `05-page01-fail-${testName}`);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
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.init(Page.getArgs(), this.page1.meetingId, { ...params, fullName: 'Moderator3' }, undefined, testName);
|
||||||
await this.page3.closeAudioModal();
|
await this.page3.closeAudioModal();
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -283,8 +283,8 @@ class Create {
|
|||||||
try {
|
try {
|
||||||
await this.page1.close();
|
await this.page1.close();
|
||||||
await this.page2.close();
|
await this.page2.close();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,8 +292,8 @@ class Create {
|
|||||||
async closePage(page) {
|
async closePage(page) {
|
||||||
try {
|
try {
|
||||||
await page.close();
|
await page.close();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -91,8 +91,8 @@ class Join extends Create {
|
|||||||
const resp = await this.page3.page.evaluate(async () => await document.querySelectorAll('span[class^="alreadyConnected--"]') !== null);
|
const resp = await this.page3.page.evaluate(async () => await document.querySelectorAll('span[class^="alreadyConnected--"]') !== null);
|
||||||
return resp === true;
|
return resp === true;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,8 +103,8 @@ class Join extends Create {
|
|||||||
await this.page1.close();
|
await this.page1.close();
|
||||||
await this.page2.close();
|
await this.page2.close();
|
||||||
await this.page3.close();
|
await this.page3.close();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,8 @@ const chatTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -54,8 +54,8 @@ const chatTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -78,8 +78,8 @@ const chatTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -102,8 +102,8 @@ const chatTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -127,8 +127,8 @@ const chatTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -152,8 +152,8 @@ const chatTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -175,8 +175,8 @@ const chatTest = () => {
|
|||||||
await test.page3.startRecording();
|
await test.page3.startRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,8 @@ class Clear extends Page {
|
|||||||
const chatResp = await this.waitForSelector(e.chatClearMessageText, ELEMENT_WAIT_TIME).then(() => true);
|
const chatResp = await this.waitForSelector(e.chatClearMessageText, ELEMENT_WAIT_TIME).then(() => true);
|
||||||
|
|
||||||
return chat0 && chatResp;
|
return chat0 && chatResp;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ class Copy extends Page {
|
|||||||
await context.overridePermissions(process.env.BBB_SERVER_URL, ['clipboard-read']);
|
await context.overridePermissions(process.env.BBB_SERVER_URL, ['clipboard-read']);
|
||||||
const copiedText = await this.page.evaluate(async () => await navigator.clipboard.readText());
|
const copiedText = await this.page.evaluate(async () => await navigator.clipboard.readText());
|
||||||
return copiedText.includes(`${p.fullName}: ${e.message}`);
|
return copiedText.includes(`${p.fullName}: ${e.message}`);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@ class Poll extends Notifications {
|
|||||||
// 1 message
|
// 1 message
|
||||||
const chat1 = await this.page3.page.evaluate(() => document.querySelectorAll('p[data-test="chatPollMessageText"]').length === 1);
|
const chat1 = await this.page3.page.evaluate(() => document.querySelectorAll('p[data-test="chatPollMessageText"]').length === 1);
|
||||||
return chat0 === chat1;
|
return chat0 === chat1;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,8 +21,8 @@ class Save extends Page {
|
|||||||
let clicked = '';
|
let clicked = '';
|
||||||
clicked = await this.page.addListener('click', () => document.addEventListener('click'));
|
clicked = await this.page.addListener('click', () => document.addEventListener('click'));
|
||||||
return clicked !== '';
|
return clicked !== '';
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,8 @@ class Send extends Page {
|
|||||||
// 1 message
|
// 1 message
|
||||||
const chat1 = await this.page.evaluate((chatSelector) => document.querySelectorAll(chatSelector).length === 1, e.chatUserMessageText);
|
const chat1 = await this.page.evaluate((chatSelector) => document.querySelectorAll(chatSelector).length === 1, e.chatUserMessageText);
|
||||||
return chat0 === chat1;
|
return chat0 === chat1;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,8 +36,8 @@ class Page {
|
|||||||
try {
|
try {
|
||||||
const settings = yaml.load(fs.readFileSync(path.join(__dirname, '../../../bigbluebutton-html5/private/config/settings.yml'), 'utf8'));
|
const settings = yaml.load(fs.readFileSync(path.join(__dirname, '../../../bigbluebutton-html5/private/config/settings.yml'), 'utf8'));
|
||||||
return settings;
|
return settings;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,8 +88,8 @@ class Page {
|
|||||||
await this.waitForSelector(ue.anyUser, ELEMENT_WAIT_TIME);
|
await this.waitForSelector(ue.anyUser, ELEMENT_WAIT_TIME);
|
||||||
await this.getMetrics(testFolderName);
|
await this.getMetrics(testFolderName);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,8 +232,8 @@ class Page {
|
|||||||
try {
|
try {
|
||||||
await this.page.waitForSelector(el, { visible: false, timeout: timeout });
|
await this.page.waitForSelector(el, { visible: false, timeout: timeout });
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -424,8 +424,8 @@ class Page {
|
|||||||
const createFile = async () => {
|
const createFile = async () => {
|
||||||
try {
|
try {
|
||||||
fs.appendFileSync(metricsFile, `${JSON.stringify(pageMetricsObj)},\n`);
|
fs.appendFileSync(metricsFile, `${JSON.stringify(pageMetricsObj)},\n`);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
await createFile();
|
await createFile();
|
||||||
|
@ -26,8 +26,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -49,8 +49,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -72,8 +72,8 @@ const customParametersTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page2.page.screenshot();
|
screenshot = await test.page2.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page2);
|
await test.closePage(test.page2);
|
||||||
}
|
}
|
||||||
@ -95,8 +95,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -118,8 +118,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -141,8 +141,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -164,8 +164,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -188,8 +188,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -211,8 +211,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -234,8 +234,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -257,8 +257,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -280,8 +280,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -304,8 +304,8 @@ const customParametersTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -327,8 +327,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -351,8 +351,8 @@ const customParametersTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page2.page.screenshot();
|
screenshot = await test.page2.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -374,8 +374,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -397,8 +397,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -421,8 +421,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -444,8 +444,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -467,8 +467,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -491,8 +491,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -514,8 +514,8 @@ const customParametersTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -539,8 +539,8 @@ const customParametersTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -560,8 +560,8 @@ const customParametersTest = () => {
|
|||||||
response = await test.recordMeeting(testName, Page.getArgs(), undefined, `${c.recordMeeting}`);
|
response = await test.recordMeeting(testName, Page.getArgs(), undefined, `${c.recordMeeting}`);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -581,8 +581,8 @@ const customParametersTest = () => {
|
|||||||
response = await test.skipVideoPreview(testName, Page.getArgs(), undefined, `${c.skipVideoPreview}`);
|
response = await test.skipVideoPreview(testName, Page.getArgs(), undefined, `${c.skipVideoPreview}`);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -602,8 +602,8 @@ const customParametersTest = () => {
|
|||||||
response = await test.skipVideoPreviewOnFirstJoin(testName, Page.getArgs(), undefined, `${c.skipVideoPreviewOnFirstJoin}`);
|
response = await test.skipVideoPreviewOnFirstJoin(testName, Page.getArgs(), undefined, `${c.skipVideoPreviewOnFirstJoin}`);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -624,8 +624,8 @@ const customParametersTest = () => {
|
|||||||
response = await test.mirrorOwnWebcam(testName, Page.getArgs(), undefined, `${c.mirrorOwnWebcam}`);
|
response = await test.mirrorOwnWebcam(testName, Page.getArgs(), undefined, `${c.mirrorOwnWebcam}`);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -645,8 +645,8 @@ const customParametersTest = () => {
|
|||||||
response = await test.showParticipantsOnLogin(testName, Page.getArgs(), undefined, `${c.showParticipantsOnLogin}`);
|
response = await test.showParticipantsOnLogin(testName, Page.getArgs(), undefined, `${c.showParticipantsOnLogin}`);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await page.logger('after ', testName);
|
await page.logger('after ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await page.logger(e);
|
await page.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,8 @@ async function listenOnlyMode(test) {
|
|||||||
return audibleButton !== false;
|
return audibleButton !== false;
|
||||||
});
|
});
|
||||||
return resp;
|
return resp;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -38,8 +38,8 @@ async function forceListenOnly(test) {
|
|||||||
return audibleNotification !== false;
|
return audibleNotification !== false;
|
||||||
});
|
});
|
||||||
return resp;
|
return resp;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,8 +50,8 @@ async function skipCheck(test) {
|
|||||||
await test.waitForSelector(ce.muteBtn, ELEMENT_WAIT_TIME);
|
await test.waitForSelector(ce.muteBtn, ELEMENT_WAIT_TIME);
|
||||||
const resp2 = await test.page.evaluate(async () => await document.querySelectorAll('button[aria-label="Mute"]').length !== 0);
|
const resp2 = await test.page.evaluate(async () => await document.querySelectorAll('button[aria-label="Mute"]').length !== 0);
|
||||||
return resp1 === true && resp2 === true;
|
return resp1 === true && resp2 === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,8 +79,8 @@ async function zoomIn(test) {
|
|||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -92,8 +92,8 @@ async function zoomOut(test) {
|
|||||||
document.querySelector('button[aria-label="Zoom in"]').scrollBy(10, 0);
|
document.querySelector('button[aria-label="Zoom in"]').scrollBy(10, 0);
|
||||||
}, 100);
|
}, 100);
|
||||||
}); return true;
|
}); return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -114,8 +114,8 @@ async function poll(page1, page2) {
|
|||||||
await page1.waitForSelector(ne.publishPollingResults, ELEMENT_WAIT_TIME);
|
await page1.waitForSelector(ne.publishPollingResults, ELEMENT_WAIT_TIME);
|
||||||
await page1.click(ne.publishPollingResults, true);
|
await page1.click(ne.publishPollingResults, true);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -125,8 +125,8 @@ async function previousSlide(test) {
|
|||||||
await test.waitForSelector(pe.prevSlide, ELEMENT_WAIT_TIME);
|
await test.waitForSelector(pe.prevSlide, ELEMENT_WAIT_TIME);
|
||||||
await test.click(pe.prevSlide, true);
|
await test.click(pe.prevSlide, true);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,8 +136,8 @@ async function nextSlide(test) {
|
|||||||
await test.waitForSelector(pe.nextSlide, ELEMENT_WAIT_TIME);
|
await test.waitForSelector(pe.nextSlide, ELEMENT_WAIT_TIME);
|
||||||
await test.click(pe.nextSlide, true);
|
await test.click(pe.nextSlide, true);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -162,8 +162,8 @@ async function presetationUpload(test) {
|
|||||||
await elementHandle.uploadFile(path.join(__dirname, '../media/DifferentSizes.pdf'));
|
await elementHandle.uploadFile(path.join(__dirname, '../media/DifferentSizes.pdf'));
|
||||||
await test.click(ce.confirmBtn, true);
|
await test.click(ce.confirmBtn, true);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -173,8 +173,8 @@ function encodeCustomParams(param) {
|
|||||||
let splited = param.split('=');
|
let splited = param.split('=');
|
||||||
splited[1] = encodeURIComponent(splited[1]).replace(/%20/g, '+');
|
splited[1] = encodeURIComponent(splited[1]).replace(/%20/g, '+');
|
||||||
return splited.join('=');
|
return splited.join('=');
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
console.log(e);
|
console.log(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ class Trigger extends Page {
|
|||||||
const findUnauthorized = await this.page.evaluate(util.countTestElements, e.unauthorized) === true;
|
const findUnauthorized = await this.page.evaluate(util.countTestElements, e.unauthorized) === true;
|
||||||
await this.logger('Check if Unauthorized message appears => ', findUnauthorized);
|
await this.logger('Check if Unauthorized message appears => ', findUnauthorized);
|
||||||
return meteorStatusConfirm && getAudioButton && findUnauthorized;
|
return meteorStatusConfirm && getAudioButton && findUnauthorized;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -93,8 +93,8 @@ class Trigger extends Page {
|
|||||||
const findUnauthorized = await this.page.evaluate(util.countTestElements, e.unauthorized) === true;
|
const findUnauthorized = await this.page.evaluate(util.countTestElements, e.unauthorized) === true;
|
||||||
await this.logger('Check if Unauthorized message appears => ', findUnauthorized);
|
await this.logger('Check if Unauthorized message appears => ', findUnauthorized);
|
||||||
return meteorStatusConfirm && getAudioButton && findUnauthorized;
|
return meteorStatusConfirm && getAudioButton && findUnauthorized;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@ const notificationsTest = () => {
|
|||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.page1.logger('Save Setting notification !');
|
await test.page1.logger('Save Setting notification !');
|
||||||
@ -44,8 +44,8 @@ const notificationsTest = () => {
|
|||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.page1.logger('Public Chat notification !');
|
await test.page1.logger('Public Chat notification !');
|
||||||
@ -65,8 +65,8 @@ const notificationsTest = () => {
|
|||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.page1.logger('Private Chat notification !');
|
await test.page1.logger('Private Chat notification !');
|
||||||
@ -86,8 +86,8 @@ const notificationsTest = () => {
|
|||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
await test.page3.stopRecording();
|
await test.page3.stopRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePages();
|
await test.closePages();
|
||||||
await test.page3.logger('User join notification !');
|
await test.page3.logger('User join notification !');
|
||||||
@ -107,8 +107,8 @@ const notificationsTest = () => {
|
|||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
await test.page3.stopRecording();
|
await test.page3.stopRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
await test.page3.logger('Presentation upload notification !');
|
await test.page3.logger('Presentation upload notification !');
|
||||||
@ -129,8 +129,8 @@ const notificationsTest = () => {
|
|||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
await test.page3.stopRecording();
|
await test.page3.stopRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
await test.page3.logger('Poll results notification !');
|
await test.page3.logger('Poll results notification !');
|
||||||
@ -150,8 +150,8 @@ const notificationsTest = () => {
|
|||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
await test.page3.stopRecording();
|
await test.page3.stopRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
await test.page3.logger('Screenshare notification !');
|
await test.page3.logger('Screenshare notification !');
|
||||||
@ -171,8 +171,8 @@ const notificationsTest = () => {
|
|||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
await test.page3.stopRecording();
|
await test.page3.stopRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
await test.page3.logger('Audio notification !');
|
await test.page3.logger('Audio notification !');
|
||||||
|
@ -46,8 +46,8 @@ class Notifications extends MultiUsers {
|
|||||||
const resp = await util.getLastToastValue(this.page1) === ne.savedSettingsToast;
|
const resp = await util.getLastToastValue(this.page1) === ne.savedSettingsToast;
|
||||||
await this.page1.screenshot(`${testName}`, `04-page01-saved-Settings-toast-${testName}`);
|
await this.page1.screenshot(`${testName}`, `04-page01-saved-Settings-toast-${testName}`);
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,8 +71,8 @@ class Notifications extends MultiUsers {
|
|||||||
const lastToast = await util.getLastToastValue(this.page1);
|
const lastToast = await util.getLastToastValue(this.page1);
|
||||||
await this.page1.screenshot(`${testName}`, `06-page01-public-chat-toast-${testName}`);
|
await this.page1.screenshot(`${testName}`, `06-page01-public-chat-toast-${testName}`);
|
||||||
return expectedToastValue === lastToast;
|
return expectedToastValue === lastToast;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -96,8 +96,8 @@ class Notifications extends MultiUsers {
|
|||||||
const lastToast = await util.getLastToastValue(this.page1);
|
const lastToast = await util.getLastToastValue(this.page1);
|
||||||
await this.page1.screenshot(`${testName}`, `06-page01-public-chat-toast-${testName}`);
|
await this.page1.screenshot(`${testName}`, `06-page01-public-chat-toast-${testName}`);
|
||||||
return expectedToastValue === lastToast;
|
return expectedToastValue === lastToast;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -108,8 +108,8 @@ class Notifications extends MultiUsers {
|
|||||||
await util.popupMenu(page);
|
await util.popupMenu(page);
|
||||||
await util.enableUserJoinPopup(page);
|
await util.enableUserJoinPopup(page);
|
||||||
await util.saveSettings(page);
|
await util.saveSettings(page);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -131,8 +131,8 @@ class Notifications extends MultiUsers {
|
|||||||
);
|
);
|
||||||
await this.page3.screenshot(`${testName}`, `04-page03-user-join-toast-${testName}`);
|
await this.page3.screenshot(`${testName}`, `04-page03-user-join-toast-${testName}`);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -167,8 +167,8 @@ class Notifications extends MultiUsers {
|
|||||||
);
|
);
|
||||||
await this.page3.screenshot(`${testName}`, `06-page03-presentation-change-toast-${testName}`);
|
await this.page3.screenshot(`${testName}`, `06-page03-presentation-change-toast-${testName}`);
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -186,8 +186,8 @@ class Notifications extends MultiUsers {
|
|||||||
const resp = await util.getLastToastValue(this.page3);
|
const resp = await util.getLastToastValue(this.page3);
|
||||||
await this.page3.screenshot(`${testName}`, `04-page03-poll-toast-${testName}`);
|
await this.page3.screenshot(`${testName}`, `04-page03-poll-toast-${testName}`);
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -202,8 +202,8 @@ class Notifications extends MultiUsers {
|
|||||||
const resp = await util.getLastToastValue(this.page3) === ne.joinAudioToast;
|
const resp = await util.getLastToastValue(this.page3) === ne.joinAudioToast;
|
||||||
await this.page3.screenshot(`${testName}`, `03-page03-audio-toast-${testName}`);
|
await this.page3.screenshot(`${testName}`, `03-page03-audio-toast-${testName}`);
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -220,8 +220,8 @@ class Notifications extends MultiUsers {
|
|||||||
const response = await util.getLastToastValue(this.page3);
|
const response = await util.getLastToastValue(this.page3);
|
||||||
await this.page3.screenshot(`${testName}`, `04-page03-screenshare-toast-${testName}`);
|
await this.page3.screenshot(`${testName}`, `04-page03-screenshare-toast-${testName}`);
|
||||||
return response === true;
|
return response === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -230,8 +230,8 @@ class Notifications extends MultiUsers {
|
|||||||
try {
|
try {
|
||||||
await this.page3.close();
|
await this.page3.close();
|
||||||
await this.page4.close();
|
await this.page4.close();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page3.logger(e);
|
await this.page3.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,8 @@ const pollingTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -52,8 +52,8 @@ const pollingTest = () => {
|
|||||||
await test.page3.logger('end of ', testName);
|
await test.page3.logger('end of ', testName);
|
||||||
await test.page3.stopRecording();
|
await test.page3.stopRecording();
|
||||||
screenshot = await test.page3.page.screenshot();
|
screenshot = await test.page3.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page3.logger(e);
|
await test.page3.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
}
|
}
|
||||||
@ -75,8 +75,8 @@ const pollingTest = () => {
|
|||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -99,8 +99,8 @@ const pollingTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,8 @@ class Polling extends Page {
|
|||||||
|
|
||||||
const resp = this.page.evaluate(() => document.querySelectorAll('[data-test="pollMenuButton"]').length === 1);
|
const resp = this.page.evaluate(() => document.querySelectorAll('[data-test="pollMenuButton"]').length === 1);
|
||||||
return resp;
|
return resp;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@ const presentationTest = () => {
|
|||||||
await test.stopRecording(testName);
|
await test.stopRecording(testName);
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -48,8 +48,8 @@ const presentationTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -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);
|
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;
|
return svg0 === true && svg1 === true && svg2 === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,8 @@ class Upload extends Page {
|
|||||||
await this.logger(slides1);
|
await this.logger(slides1);
|
||||||
|
|
||||||
return slides0 !== slides1;
|
return slides0 !== slides1;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,8 @@ const screenShareTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -48,8 +48,8 @@ const screenShareTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -69,8 +69,8 @@ const screenShareTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -90,8 +90,8 @@ const screenShareTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,8 @@ class ShareScreen extends Page {
|
|||||||
await sleep(5000);
|
await sleep(5000);
|
||||||
const response = await util.getScreenShareContainer(this);
|
const response = await util.getScreenShareContainer(this);
|
||||||
return response;
|
return response;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -30,8 +30,8 @@ class ShareScreen extends Page {
|
|||||||
await this.closeAudioModal();
|
await this.closeAudioModal();
|
||||||
const screenshareBtn = await this.page.evaluate(() => document.querySelectorAll('button[aria-label="Share your screen"]').length === 0) === true;
|
const screenshareBtn = await this.page.evaluate(() => document.querySelectorAll('button[aria-label="Share your screen"]').length === 0) === true;
|
||||||
return screenshareBtn;
|
return screenshareBtn;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,8 +26,8 @@ const sharedNotesTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@ const stressTest = () => {
|
|||||||
await test.logger('begin of ', testName);
|
await test.logger('begin of ', testName);
|
||||||
response = await test.moderatorAsPresenter(testName);
|
response = await test.moderatorAsPresenter(testName);
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
}
|
}
|
||||||
expect(response).toBe(true);
|
expect(response).toBe(true);
|
||||||
});
|
});
|
||||||
|
@ -31,9 +31,9 @@ class Stress extends Page {
|
|||||||
if (failureCount > maxFailRate) return false;
|
if (failureCount > maxFailRate) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.close();
|
await this.close();
|
||||||
this.logger(e);
|
this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -20,8 +20,8 @@ const triggerTest = () => {
|
|||||||
await test.init(Page.getArgs(), undefined, undefined, undefined, testName);
|
await test.init(Page.getArgs(), undefined, undefined, undefined, testName);
|
||||||
response = await test.triggerMeteorDisconnect(testName);
|
response = await test.triggerMeteorDisconnect(testName);
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -39,8 +39,8 @@ const triggerTest = () => {
|
|||||||
await test.init(Page.getArgs(), undefined, undefined, undefined, testName);
|
await test.init(Page.getArgs(), undefined, undefined, undefined, testName);
|
||||||
response = await test.triggerNetworkServiceDisconnection(testName);
|
response = await test.triggerNetworkServiceDisconnection(testName);
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ const userTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -55,8 +55,8 @@ const userTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -82,8 +82,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end osf ', testName);
|
await test.page1.logger('end osf ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -106,8 +106,8 @@ const userTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -130,8 +130,8 @@ const userTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -154,8 +154,8 @@ const userTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -178,8 +178,8 @@ const userTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -202,8 +202,8 @@ const userTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.closePage(test.page1);
|
await test.closePage(test.page1);
|
||||||
}
|
}
|
||||||
@ -231,8 +231,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -257,8 +257,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
@ -284,8 +284,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
@ -311,8 +311,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
@ -339,8 +339,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -366,8 +366,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -393,8 +393,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
@ -420,8 +420,8 @@ const userTest = () => {
|
|||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
}
|
}
|
||||||
|
@ -47,8 +47,8 @@ class MultiUsers {
|
|||||||
await util.sendPublicChatMessage(this.page1, this.page2);
|
await util.sendPublicChatMessage(this.page1, this.page2);
|
||||||
const chat1 = await this.page1.page.evaluate(() => document.querySelectorAll('p[data-test="chatUserMessageText"]').length);
|
const chat1 = await this.page1.page.evaluate(() => document.querySelectorAll('p[data-test="chatUserMessageText"]').length);
|
||||||
return chat0 !== chat1;
|
return chat0 !== chat1;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,8 +61,8 @@ class MultiUsers {
|
|||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
const chat1 = await this.page1.page.evaluate(() => document.querySelectorAll('p[data-test="chatUserMessageText"]').length);
|
const chat1 = await this.page1.page.evaluate(() => document.querySelectorAll('p[data-test="chatUserMessageText"]').length);
|
||||||
return chat0 !== chat1;
|
return chat0 !== chat1;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -71,8 +71,8 @@ class MultiUsers {
|
|||||||
try {
|
try {
|
||||||
const checks = await this.checkForOtherUser();
|
const checks = await this.checkForOtherUser();
|
||||||
return checks.firstCheck !== false && checks.secondCheck !== false;
|
return checks.firstCheck !== false && checks.secondCheck !== false;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -162,8 +162,8 @@ class MultiUsers {
|
|||||||
const receivedAnswerFound = await this.page1.page.evaluate(utilCustomParams.countTestElements, ple.receivedAnswer);
|
const receivedAnswerFound = await this.page1.page.evaluate(utilCustomParams.countTestElements, ple.receivedAnswer);
|
||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
return receivedAnswerFound === true;
|
return receivedAnswerFound === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -179,8 +179,8 @@ class MultiUsers {
|
|||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
const resp = await this.page1.page.evaluate(async () => await document.querySelector('[data-test="multiWhiteboardTool"]').children[0].innerText === '1');
|
const resp = await this.page1.page.evaluate(async () => await document.querySelector('[data-test="multiWhiteboardTool"]').children[0].innerText === '1');
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -195,8 +195,8 @@ class MultiUsers {
|
|||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
const resp = await this.page2.page.evaluate(utilCustomParams.countTestElements, we.lowerHandLabel);
|
const resp = await this.page2.page.evaluate(utilCustomParams.countTestElements, we.lowerHandLabel);
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -209,8 +209,8 @@ class MultiUsers {
|
|||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
const resp = await this.page2.page.evaluate(utilCustomParams.countTestElements, we.raiseHandLabel);
|
const resp = await this.page2.page.evaluate(utilCustomParams.countTestElements, we.raiseHandLabel);
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page2.logger(e);
|
await this.page2.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -221,8 +221,8 @@ class MultiUsers {
|
|||||||
const avatarInToastElementColor = await this.page1.page.$eval(we.avatarsWrapperAvatar, (elem) => getComputedStyle(elem).backgroundColor);
|
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);
|
const avatarInUserListColor = await this.page1.page.$eval('[data-test="userListItem"] > div [data-test="userAvatar"]', (elem) => getComputedStyle(elem).backgroundColor);
|
||||||
return avatarInToastElementColor === avatarInUserListColor;
|
return avatarInToastElementColor === avatarInUserListColor;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -241,8 +241,8 @@ class MultiUsers {
|
|||||||
const connectionStatusItemEmpty = await this.page1.page.evaluate(utilUser.countTestElements, ue.connectionStatusItemEmpty) === false;
|
const connectionStatusItemEmpty = await this.page1.page.evaluate(utilUser.countTestElements, ue.connectionStatusItemEmpty) === false;
|
||||||
const connectionStatusOfflineUser = await this.page1.page.evaluate(utilUser.countTestElements, ue.connectionStatusOfflineUser) === true;
|
const connectionStatusOfflineUser = await this.page1.page.evaluate(utilUser.countTestElements, ue.connectionStatusOfflineUser) === true;
|
||||||
return connectionStatusOfflineUser && connectionStatusItemEmpty;
|
return connectionStatusOfflineUser && connectionStatusItemEmpty;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -254,8 +254,8 @@ class MultiUsers {
|
|||||||
const userlistPanel = await this.page1.page.evaluate(utilUser.countTestElements, ue.chatButton) === false;
|
const userlistPanel = await this.page1.page.evaluate(utilUser.countTestElements, ue.chatButton) === false;
|
||||||
const chatPanel = await this.page2.page.evaluate(utilUser.countTestElements, ue.chatButton) === false;
|
const chatPanel = await this.page2.page.evaluate(utilUser.countTestElements, ue.chatButton) === false;
|
||||||
return userlistPanel && chatPanel;
|
return userlistPanel && chatPanel;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -271,8 +271,8 @@ class MultiUsers {
|
|||||||
const onChatPanel = await this.page2.page.evaluate(utilUser.countTestElements, cu.hidePresentation) === false;
|
const onChatPanel = await this.page2.page.evaluate(utilUser.countTestElements, cu.hidePresentation) === false;
|
||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
return onUserListPanel && onChatPanel;
|
return onUserListPanel && onChatPanel;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -287,8 +287,8 @@ class MultiUsers {
|
|||||||
const onChatPanel = await this.page2.isNotVisible(ue.chatButton, ELEMENT_WAIT_TIME) === true;
|
const onChatPanel = await this.page2.isNotVisible(ue.chatButton, ELEMENT_WAIT_TIME) === true;
|
||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
return whiteboard && onChatPanel;
|
return whiteboard && onChatPanel;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -298,8 +298,8 @@ class MultiUsers {
|
|||||||
try {
|
try {
|
||||||
await page1.close();
|
await page1.close();
|
||||||
await page2.close();
|
await page2.close();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -307,8 +307,8 @@ class MultiUsers {
|
|||||||
async closePage(page) {
|
async closePage(page) {
|
||||||
try {
|
try {
|
||||||
await page.close();
|
await page.close();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@ class Status extends Page {
|
|||||||
await this.waitForSelector(e.clearStatus, ELEMENT_WAIT_TIME);
|
await this.waitForSelector(e.clearStatus, ELEMENT_WAIT_TIME);
|
||||||
await this.click(e.clearStatus, true);
|
await this.click(e.clearStatus, true);
|
||||||
return resp1 === resp2;
|
return resp1 === resp2;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -37,8 +37,8 @@ class Status extends Page {
|
|||||||
|
|
||||||
const response = await this.page.evaluate(util.countTestElements, e.mobileUser) === true;
|
const response = await this.page.evaluate(util.countTestElements, e.mobileUser) === true;
|
||||||
return response === true;
|
return response === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -48,8 +48,8 @@ class Status extends Page {
|
|||||||
await util.connectionStatus(this.page);
|
await util.connectionStatus(this.page);
|
||||||
const resp = await this.page.evaluate(util.countTestElements, e.connectionStatusModal) === true;
|
const resp = await this.page.evaluate(util.countTestElements, e.connectionStatusModal) === true;
|
||||||
return resp === true;
|
return resp === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -66,8 +66,8 @@ class Status extends Page {
|
|||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
const webcamsIsDisabledInDataSaving = await this.page.evaluate(util.countTestElements, e.webcamsIsDisabledInDataSaving) === true;
|
const webcamsIsDisabledInDataSaving = await this.page.evaluate(util.countTestElements, e.webcamsIsDisabledInDataSaving) === true;
|
||||||
return webcamsIsDisabledInDataSaving === true;
|
return webcamsIsDisabledInDataSaving === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -85,8 +85,8 @@ class Status extends Page {
|
|||||||
await sleep(2000);
|
await sleep(2000);
|
||||||
const webcamsIsDisabledInDataSaving = await this.page.evaluate(util.countTestElements, e.screenshareLocked) === true;
|
const webcamsIsDisabledInDataSaving = await this.page.evaluate(util.countTestElements, e.screenshareLocked) === true;
|
||||||
return webcamsIsDisabledInDataSaving === true;
|
return webcamsIsDisabledInDataSaving === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,8 +103,8 @@ class Status extends Page {
|
|||||||
const connectionStatusItemEmpty = await this.page.evaluate(util.countTestElements, e.connectionStatusItemEmpty) === false;
|
const connectionStatusItemEmpty = await this.page.evaluate(util.countTestElements, e.connectionStatusItemEmpty) === false;
|
||||||
const connectionStatusItemUser = await this.page.evaluate(util.countTestElements, e.connectionStatusItemUser) === true;
|
const connectionStatusItemUser = await this.page.evaluate(util.countTestElements, e.connectionStatusItemUser) === true;
|
||||||
return connectionStatusItemUser && connectionStatusItemEmpty;
|
return connectionStatusItemUser && connectionStatusItemEmpty;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,8 +18,8 @@ const virtualizedListTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
await test.page1.logger('end of ', testName);
|
await test.page1.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ class VirtualizeList {
|
|||||||
await this.page1.getMetrics();
|
await this.page1.getMetrics();
|
||||||
}
|
}
|
||||||
await this.page1.getMetrics();
|
await this.page1.getMetrics();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ class VirtualizeList {
|
|||||||
} if ((USER_LIST_VLIST_VISIBLE_USERS !== totalNumberOfUsersMongo) && (USER_LIST_VLIST_VISIBLE_USERS < totalNumberOfUsersMongo)) {
|
} if ((USER_LIST_VLIST_VISIBLE_USERS !== totalNumberOfUsersMongo) && (USER_LIST_VLIST_VISIBLE_USERS < totalNumberOfUsersMongo)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -52,8 +52,8 @@ class VirtualizeList {
|
|||||||
try {
|
try {
|
||||||
this.page1.close();
|
this.page1.close();
|
||||||
this.pagesArray.forEach(page => page.close());
|
this.pagesArray.forEach(page => page.close());
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.page1.logger(e);
|
await this.page1.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ const webcamTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -46,8 +46,8 @@ const webcamTest = () => {
|
|||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -11,8 +11,8 @@ class Check extends Share {
|
|||||||
await util.enableWebcam(page1, page2);
|
await util.enableWebcam(page1, page2);
|
||||||
const respUser = await util.compareWebcamsContents(this);
|
const respUser = await util.compareWebcamsContents(this);
|
||||||
return respUser === true;
|
return respUser === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -25,8 +25,8 @@ class Check extends Share {
|
|||||||
await util.enableWebcam(this, videoPreviewTimeout);
|
await util.enableWebcam(this, videoPreviewTimeout);
|
||||||
const respUser = await util.webcamContentCheck(this);
|
const respUser = await util.webcamContentCheck(this);
|
||||||
return respUser === true;
|
return respUser === true;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,8 @@ class Share extends Page {
|
|||||||
const videoPreviewTimeout = parseInt(parsedSettings.public.kurento.gUMTimeout);
|
const videoPreviewTimeout = parseInt(parsedSettings.public.kurento.gUMTimeout);
|
||||||
const response = await util.enableWebcam(this, videoPreviewTimeout);
|
const response = await util.enableWebcam(this, videoPreviewTimeout);
|
||||||
return response;
|
return response;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -26,8 +26,8 @@ class Share extends Page {
|
|||||||
const parsedSettings = await this.getSettingsYaml();
|
const parsedSettings = await this.getSettingsYaml();
|
||||||
const videoPreviewTimeout = parseInt(parsedSettings.public.kurento.gUMTimeout);
|
const videoPreviewTimeout = parseInt(parsedSettings.public.kurento.gUMTimeout);
|
||||||
await util.enableWebcam(this, videoPreviewTimeout);
|
await util.enableWebcam(this, videoPreviewTimeout);
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -45,8 +45,8 @@ class Share extends Page {
|
|||||||
this.logger(testName, ' failed');
|
this.logger(testName, ' failed');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ const webcamLayoutTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
|
@ -28,8 +28,8 @@ const whiteboardTest = () => {
|
|||||||
await test.logger('end of ', testName);
|
await test.logger('end of ', testName);
|
||||||
await test.stopRecording();
|
await test.stopRecording();
|
||||||
screenshot = await test.page.screenshot();
|
screenshot = await test.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.logger(e);
|
await test.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close();
|
await test.close();
|
||||||
}
|
}
|
||||||
@ -56,8 +56,8 @@ const whiteboardTest = () => {
|
|||||||
await test.page1.stopRecording();
|
await test.page1.stopRecording();
|
||||||
await test.page2.stopRecording();
|
await test.page2.stopRecording();
|
||||||
screenshot = await test.page1.page.screenshot();
|
screenshot = await test.page1.page.screenshot();
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await test.page1.logger(e);
|
await test.page1.logger(err);
|
||||||
} finally {
|
} finally {
|
||||||
await test.close(test.page1, test.page2);
|
await test.close(test.page1, test.page2);
|
||||||
await test.closePage(test.page3);
|
await test.closePage(test.page3);
|
||||||
|
@ -30,8 +30,8 @@ class Draw extends Page {
|
|||||||
shapes1 !== '<g></g>';
|
shapes1 !== '<g></g>';
|
||||||
|
|
||||||
return shapes0 && shapes1;
|
return shapes0 && shapes1;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -41,8 +41,8 @@ class Draw extends Page {
|
|||||||
await this.waitForSelector('g[clip-path="url(#viewBox)"]', ELEMENT_WAIT_TIME);
|
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);
|
const shapes = await this.page.evaluate(() => document.querySelector('svg g[clip-path]').children[1].outerHTML);
|
||||||
return shapes;
|
return shapes;
|
||||||
} catch (e) {
|
} catch (err) {
|
||||||
await this.logger(e);
|
await this.logger(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user