remove disconnectAudio selector

This commit is contained in:
Anton Barboza 2021-09-22 10:25:10 -03:00
parent e9bae3745d
commit 4ed10376ea
2 changed files with 0 additions and 3 deletions

View File

@ -32,7 +32,6 @@ exports.isTalking = '[data-test="isTalking"]';
exports.wasTalking = '[data-test="wasTalking"]';
exports.joinAudio = 'button[data-test="joinAudio"]';
exports.leaveAudio = 'button[data-test="leaveAudio"]';
exports.disconnectAudio = 'li[data-test="disconnectAudio"]';
exports.connectingStatus = 'div[class^="connecting--"]';
exports.connecting = 'span[data-test="connecting"]';
exports.connectingToEchoTest = 'span[data-test="connectingToEchoTest"]';

View File

@ -108,13 +108,11 @@ class Page {
const parsedSettings = await this.getSettingsYaml();
const listenOnlyCallTimeout = parseInt(parsedSettings.public.media.listenOnlyCallTimeout);
await this.waitAndClick(e.leaveAudio, listenOnlyCallTimeout);
await this.waitAndClick(e.disconnectAudio);
}
// Leave audio
async leaveAudio() {
await this.waitAndClick(e.leaveAudio);
await this.waitAndClick(e.disconnectAudio);
await this.waitForSelector(e.joinAudio);
}