in integration/pages/RosterTestPage.js [145:163]
async checkContentIcon(attendeeName, sharingContent) {
const isMatched = await this.waitUntil(async () => {
const rosterCell = await this.getAttendeeRosterCell(attendeeName);
const childElements = await rosterCell.findElements(By.xpath('*'));
const contentIcon = childElements[2];
let title;
try {
title = await contentIcon.findElement(By.css('title'))?.getAttribute('innerHTML');
} catch (error) {
title = '';
}
const target = sharingContent ? 'Screen share' : '';
return title === target;
});
assert(isMatched, `Wrong content icon when sharingContent is ${sharingContent}`);
}