integration/js/checks/MeetingJoinFailedCheck.js (25 lines of code) (raw):
const {KiteTestError, Status} = require('kite-common');
const demo = require('../pages/AppPage');
const AppTestStep = require('../utils/AppTestStep');
class MeetingJoinFailedCheck extends AppTestStep {
constructor(kiteBaseTest, sessionInfo, attendee_id) {
super(kiteBaseTest, sessionInfo);
}
static async executeStep(KiteBaseTest, sessionInfo, attendee_id) {
const step = new MeetingJoinFailedCheck(KiteBaseTest, sessionInfo, attendee_id);
await step.execute(KiteBaseTest);
}
stepDescription() {
return 'Check if user failed to join the meeting';
}
metricName() {
return 'JoinEndedMeetingCheck'
}
async run() {
let failed = await this.page.checkIfFailedToJoinMeeting();
if (failed === false) {
throw new KiteTestError(Status.FAILED, 'User was able to join the meeting');
}
}
}
module.exports = MeetingJoinFailedCheck;