test: remove and change notification checks
This commit is contained in:
parent
02a6237337
commit
182edfc111
@ -5,7 +5,6 @@ const c = require('./constants');
|
||||
const { VIDEO_LOADING_WAIT_TIME, ELEMENT_WAIT_LONGER_TIME, ELEMENT_WAIT_EXTRA_LONG_TIME } = require('../core/constants');
|
||||
const util = require('./util');
|
||||
const { getSettings } = require('../core/settings');
|
||||
const { waitAndClearDefaultPresentationNotification } = require('../notifications/util');
|
||||
|
||||
class CustomParameters extends MultiUsers {
|
||||
constructor(browser, context) {
|
||||
@ -94,11 +93,9 @@ class CustomParameters extends MultiUsers {
|
||||
}
|
||||
|
||||
async skipCheck() {
|
||||
await waitAndClearDefaultPresentationNotification(this.modPage);
|
||||
await this.modPage.waitAndClick(e.microphoneButton);
|
||||
await this.modPage.waitForSelector(e.establishingAudioLabel);
|
||||
await this.modPage.wasRemoved(e.establishingAudioLabel, ELEMENT_WAIT_LONGER_TIME);
|
||||
await this.modPage.hasElement(e.smallToastMsg);
|
||||
await this.modPage.hasElement(e.isTalking);
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ class Presentation extends MultiUsers {
|
||||
await uploadSinglePresentation(this.modPage, e.pdfFileName, UPLOAD_PDF_WAIT_TIME);
|
||||
|
||||
// wait until the notifications disappear
|
||||
await this.modPage.wasRemoved(e.presentationStatusInfo, ELEMENT_WAIT_LONGER_TIME);
|
||||
await this.modPage.hasElement(e.presentationStatusInfo, ELEMENT_WAIT_LONGER_TIME);
|
||||
await this.modPage.wasRemoved(e.smallToastMsg, ELEMENT_WAIT_LONGER_TIME);
|
||||
await this.userPage.wasRemoved(e.presentationStatusInfo);
|
||||
await this.userPage.wasRemoved(e.smallToastMsg);
|
||||
|
Loading…
Reference in New Issue
Block a user