Fix the selectors in presentation tests
This commit is contained in:
parent
835b07384a
commit
b0cfc662c1
@ -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)}
|
||||
|
@ -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';
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user