import { ElementHandle , Page } from 'puppeteer' ; import { Base } from './base' ; export class AgentDesktop extends Base { private static readonly _noTaskCanvas = '.Twilio-NoTasksCanvas' ; assert = { /**
         * Checks whether task canvas are visible on the Agent Desktop
         */ isVisible : async ( ) : Promise < ElementHandle < Element > > => this . elementVisible ( AgentDesktop . _noTaskCanvas , 'Task canvas' ) , } ; private readonly _baseUrl : string ; constructor ( page , baseUrl ) { super ( page ) ; this . _baseUrl = baseUrl ; } /**
     * Navigates to Agent Desktop
     */ async open ( ) { await this . goto ( { baseUrl : this . _baseUrl , path : 'agent-desktop' } ) ; } }