deleted duplication of new set data-test

This commit is contained in:
Mohamed Amine Ben Salah 2020-03-04 15:29:31 -03:00
parent aa4ade2221
commit 61ca94181d
3 changed files with 2 additions and 5 deletions

View File

@ -60,7 +60,6 @@ class EchoTest extends Component {
<Button
className={styles.button}
label={intl.formatMessage(intlMessages.confirmLabel)}
data-test="echoTestThumbsUp"
aria-label={intl.formatMessage(intlMessages.confirmAriaLabel)}
icon="thumbs_up"
disabled={this.state.disabled}
@ -72,7 +71,6 @@ class EchoTest extends Component {
<Button
className={styles.button}
label={intl.formatMessage(intlMessages.disconfirmLabel)}
data-test="echoTestThumbsDown"
aria-label={intl.formatMessage(intlMessages.disconfirmAriaLabel)}
icon="thumbs_down"
circle

View File

@ -2,7 +2,6 @@ exports.audioDialog = '[aria-label="Join audio modal"]';
exports.closeAudio = 'button[aria-label="Close Join audio modal"]';
exports.microphoneButton = 'button[aria-label="Microphone"]';
exports.listenButton = 'button[aria-label="Listen Only"]';
exports.thumbsUp = 'button[data-test="echoTestThumbsUp"]';
exports.echoYes = 'button[aria-label="Echo is audible"]';
exports.title = '._imports_ui_components_nav_bar__styles__presentationTitle';
exports.alerts = '.toastify-content';

View File

@ -48,8 +48,8 @@ class Page {
await this.waitForSelector(e.audioDialog);
await this.waitForSelector(e.microphoneButton);
await this.click(e.microphoneButton, true);
await this.waitForSelector(e.thumbsUp);
await this.click(e.thumbsUp, true);
await this.waitForSelector(e.echoYes);
await this.click(e.echoYes, true);
}
// Joining audio with Listen Only mode