diff --git a/bigbluebutton-html5/tests/puppeteer/chat/copy.js b/bigbluebutton-html5/tests/puppeteer/chat/copy.js index 467c53ec6a34df5dba98d0673c934db9d187169d..849b6030c79d1d3ac47e0b94c51fc7bf06a69ff2 100644 --- a/bigbluebutton-html5/tests/puppeteer/chat/copy.js +++ b/bigbluebutton-html5/tests/puppeteer/chat/copy.js @@ -22,9 +22,8 @@ class Copy extends Page { await this.click(e.chatCopy, true); const copiedChat = clipboardy.readSync(); - expect(copiedChat).toEqual(expect.stringContaining(`User1 : ${e.message}`)); - return true; + return copiedChat.includes(`User1 : ${e.message}`); } } diff --git a/bigbluebutton-html5/tests/puppeteer/chat/save.js b/bigbluebutton-html5/tests/puppeteer/chat/save.js index e268b40838ebad2f3cf786c646ff4855d1ea0ddf..b57aca9333f759d22ce23881c4bf64014d5c3e85 100644 --- a/bigbluebutton-html5/tests/puppeteer/chat/save.js +++ b/bigbluebutton-html5/tests/puppeteer/chat/save.js @@ -14,15 +14,9 @@ class Save extends Page { await this.click(e.chatOptions); await this.click(e.chatSave, true); - - // TODO: Replace this with a download event listener - await this.screenshot(true); - await this.screenshot(true); - await this.screenshot(true); - - // TODO: Check test - return true; + const clicked = await this.page.addListener('click', () => document.addEventListener('click')); + return clicked; } } -module.exports = exports = Save; +module.exports = exports = Save; \ No newline at end of file diff --git a/bigbluebutton-html5/tests/puppeteer/presentation/slide.js b/bigbluebutton-html5/tests/puppeteer/presentation/slide.js index 1d6ebd9824d25d139a9fe583e489f1e3a9c68d07..3480ec09ee23840a2d5e4d7f34a8bf9c9cbf33b2 100644 --- a/bigbluebutton-html5/tests/puppeteer/presentation/slide.js +++ b/bigbluebutton-html5/tests/puppeteer/presentation/slide.js @@ -31,8 +31,7 @@ class Slide extends Page { console.log('\nAfter previous slide:'); console.log(svg2); - // TODO: Check test - return true; + return svg0 !== svg1 && svg1 !== svg2; } async getTestElements() { diff --git a/bigbluebutton-html5/tests/puppeteer/presentation/upload.js b/bigbluebutton-html5/tests/puppeteer/presentation/upload.js index 93cfc7629dea0d8c7377dc2830ff908770487f38..b77237e6a8d0181932a1b296bd7ee966629c060c 100644 --- a/bigbluebutton-html5/tests/puppeteer/presentation/upload.js +++ b/bigbluebutton-html5/tests/puppeteer/presentation/upload.js @@ -37,8 +37,7 @@ class Upload extends Page { console.log(slides1.slideList); console.log(slides1.svg); - // TODO: Check test - return true; + return slides0.svg !== slides1.svg; } async getTestElements() { diff --git a/bigbluebutton-html5/tests/puppeteer/user/status.js b/bigbluebutton-html5/tests/puppeteer/user/status.js index e73891fa90121f7f0136f127a5f062d401b1521f..fa1ee6358ab7f4f7c3baa8e2b0148a7431dd4fe1 100644 --- a/bigbluebutton-html5/tests/puppeteer/user/status.js +++ b/bigbluebutton-html5/tests/puppeteer/user/status.js @@ -30,8 +30,8 @@ class Status extends Page { await this.screenshot(true); const status3 = await util.getTestElements(this); - // TODO: Check test - return true; + // status0 and status3 are equal as initial and last status + return status0 !== status1 && status1 !== status2 && status2 !== status3 && status2 !== status0 && status3 !== status1; } } diff --git a/bigbluebutton-html5/tests/puppeteer/whiteboard/draw.js b/bigbluebutton-html5/tests/puppeteer/whiteboard/draw.js index 53609625bc222f4b2d8417cea70b40009e40a144..60c5ee7e24586fd49263a011a73bf8c57739cf0c 100644 --- a/bigbluebutton-html5/tests/puppeteer/whiteboard/draw.js +++ b/bigbluebutton-html5/tests/puppeteer/whiteboard/draw.js @@ -28,8 +28,7 @@ class Draw extends Page { console.log('\nShapes after drawing box:'); console.log(shapes1); - // TODO: Check test - return true; + return shapes0 !== shapes1; } async getTestElements() {