in integration/pages/RosterTestPage.js [131:143]
async checkVideoIcon(attendeeName, videoEnabled) {
const isMatched = await this.waitUntil(async () => {
const rosterCell = await this.getAttendeeRosterCell(attendeeName);
const childElements = await rosterCell.findElements(By.xpath('*'));
const videoIcon = childElements[2];
// Compare the path definition value of the video icon SVG to determine if it is the target icon.
// When video is enabled, it should start with 'M19', otherwise it should start with 'M4'.
const d = await videoIcon.findElement(By.css('path')).getAttribute('d');
return videoEnabled === d.startsWith('M19');
});
assert(isMatched, `Wrong video icon when videoEnabled is ${videoEnabled}`);
}