Skip to content

CollaborationPage

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/web-e2e/src/pages/collaboration.page.ts

Collaboration feature page object

Extends: BasePage

Methods

MethodSignatureReturns
gotogoto()Promise<void>
getUserCursorsgetUserCursors()Locator
getCursorCountgetCursorCount()Promise<number>
getPresenceIndicatorsgetPresenceIndicators()Locator
getCollaboratorCountgetCollaboratorCount()Promise<number>
getConnectionStatusgetConnectionStatus()`Promise<'connected'
waitForConnectionwaitForConnection()Promise<void>
getUserByNamegetUserByName(name: string)Locator
isUserPresentisUserPresent(name: string)Promise<boolean>
openShareDialogopenShareDialog()Promise<void>
getCursorPositiongetCursorPosition(userName: string)`Promise<{ x: number; y: number }
getCollaboratorColorgetCollaboratorColor(userName: string)`Promise<string
isStatusBarVisibleisStatusBarVisible()Promise<boolean>
getStatusBarTextgetStatusBarText()Promise<string>
simulateDisconnectionsimulateDisconnection()Promise<void>
waitForReconnectionwaitForReconnection()Promise<void>

Properties

PropertyType
statusBarLocator
userCursorsLocator
presenceIndicatorsLocator
connectionStatusLocator
userListLocator
shareButtonLocator

Where it refuses work

  • CollaborationPage stops the work with an early return when text?.toLowerCase().includes('connected').
  • CollaborationPage stops the work with an early return when text?.toLowerCase().includes('connecting').
  • CollaborationPage stops the work with an early return when !(await cursor.isVisible()).
  • CollaborationPage stops the work with an early return when !box.
  • CollaborationPage stops the work with an early return when !(await indicator.isVisible()).

Was this page helpful?

Download as PDF