2018-08-31 00:23:36 +08:00
const Page = require ( './page' ) ;
const HotkeysMicFirstTestPage = require ( './page-hotkeys-mic-first' ) ;
2018-10-13 02:46:26 +08:00
test ( 'Tests hotkeys when a user first joins a meeting with a microphone: Leaving audio, rejoining as Listen Only, then rejoining with microphone' , async ( ) => {
const test = new HotkeysMicFirstTestPage ( ) ;
try {
2018-08-31 00:23:36 +08:00
await test . init ( Page . getArgs ( ) ) ;
await test . test ( ) ;
await test . close ( ) ;
2018-10-13 02:46:26 +08:00
} catch ( e ) {
2018-08-31 00:23:36 +08:00
console . log ( e ) ;
await test . close ( ) ;
2018-10-13 02:46:26 +08:00
throw new Error ( 'Test failed' ) ;
2018-08-31 00:23:36 +08:00
}
2018-10-13 02:46:26 +08:00
} ) ;