Fix the selectors in presentation tests

This commit is contained in:
Maxim Khlobystov 2018-11-30 15:56:21 -05:00
parent 835b07384a
commit b0cfc662c1
3 changed files with 4 additions and 2 deletions

View File

@ -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)}

View File

@ -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';

View File

@ -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);