diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx index 0da0a77e1c76900d15be4fc0e06e8ebbbaa8ab95..3264ef0d7a4a8763ea20aab1ba8ef933003703f0 100755 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx @@ -132,6 +132,7 @@ class ActionsDropdown extends Component { : null), (isUserPresenter ? <DropdownListItem + data-test="uploadPresentation" icon="presentation" label={intl.formatMessage(intlMessages.presentationLabel)} description={intl.formatMessage(intlMessages.presentationDesc)} diff --git a/bigbluebutton-html5/tests/puppeteer/presentation/elements.js b/bigbluebutton-html5/tests/puppeteer/presentation/elements.js index 7427d72cf6396bd577dc6688a6a6e9273b7ddfac..472f6906b3afe50ee51cbbcc8ea8a2639fc78765 100644 --- a/bigbluebutton-html5/tests/puppeteer/presentation/elements.js +++ b/bigbluebutton-html5/tests/puppeteer/presentation/elements.js @@ -4,5 +4,5 @@ exports.prevSlide = 'button[aria-label="Previous slide"]'; exports.fileUpload = 'input[type="file"]'; exports.start = 'button[aria-label="Start"]'; exports.cancel = 'button[aria-label="Cancel]'; -exports.uploadPresentation = '._imports_ui_components_dropdown__styles__top-left > div:nth-child(1) > ul:nth-child(1) > li:nth-child(1)'; +exports.uploadPresentation = '[data-test="uploadPresentation"]'; exports.skipSlide = '#skipSlide'; diff --git a/bigbluebutton-html5/tests/puppeteer/presentation/upload.js b/bigbluebutton-html5/tests/puppeteer/presentation/upload.js index ac6c6888e491d846034d8f3a3d7cfbfa7a4c8b77..8df006e2d6f615f0224e6a87fe4192621623caba 100644 --- a/bigbluebutton-html5/tests/puppeteer/presentation/upload.js +++ b/bigbluebutton-html5/tests/puppeteer/presentation/upload.js @@ -23,7 +23,8 @@ class Upload extends Page { await this.click(e.start); console.log('\nWaiting for the new presentation to upload...'); - await this.elementRemoved(e.start); + //await this.elementRemoved(e.start); + await this.page.waitFor(10000); console.log('\nPresentation uploaded!'); await this.screenshot(true);