diff --git a/bigbluebutton-html5/imports/ui/components/note/component.jsx b/bigbluebutton-html5/imports/ui/components/note/component.jsx index 15c498d499..289f0d6130 100644 --- a/bigbluebutton-html5/imports/ui/components/note/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/note/component.jsx @@ -64,9 +64,10 @@ class Note extends Component { onClick={() => { Session.set('openPanel', 'userlist'); }} + data-test="hideNoteLabel" aria-label={intl.formatMessage(intlMessages.hideNoteLabel)} label={intl.formatMessage(intlMessages.title)} - icon={isRTL ? "right_arrow" : "left_arrow"} + icon={isRTL ? 'right_arrow' : 'left_arrow'} className={styles.hideBtn} /> diff --git a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-notes/component.jsx b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-notes/component.jsx index d73376919b..955e8977bc 100644 --- a/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-notes/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-notes/component.jsx @@ -93,7 +93,7 @@ class UserNotes extends Component { >
-
+
{intl.formatMessage(intlMessages.sharedNotes)}
{disableNote diff --git a/bigbluebutton-html5/tests/puppeteer/notes/util.js b/bigbluebutton-html5/tests/puppeteer/notes/util.js index 82754966ed..3f1c1137c0 100644 --- a/bigbluebutton-html5/tests/puppeteer/notes/util.js +++ b/bigbluebutton-html5/tests/puppeteer/notes/util.js @@ -10,7 +10,7 @@ async function startSharedNotes(test) { } async function getTestElement(element) { - const response = document.querySelectorAll(element).length >= 1; + const response = await document.querySelectorAll(element).length >= 1; return response; } diff --git a/bigbluebutton-html5/tests/puppeteer/sharednotes.test.js b/bigbluebutton-html5/tests/puppeteer/sharednotes.test.js index 67aad3cd7c..b366f579c4 100644 --- a/bigbluebutton-html5/tests/puppeteer/sharednotes.test.js +++ b/bigbluebutton-html5/tests/puppeteer/sharednotes.test.js @@ -1,11 +1,17 @@ const SharedNotes = require('./notes/sharednotes'); describe('Shared notes', () => { + beforeEach(() => { + jest.setTimeout(30000); + }); + test('Open Shared notes', async () => { const test = new SharedNotes(); let response; try { await test.init(); + await test.page1.closeAudioModal(); + await test.page2.closeAudioModal(); response = await test.test(); } catch (e) { console.log(e);