Files
AppFlowy-Web/cypress/support/page/workspace.ts
2025-08-17 16:29:44 +08:00

28 lines
638 B
TypeScript

/// <reference types="cypress" />
export function getWorkspaceDropdownTrigger() {
return cy.get('[data-testid="workspace-dropdown-trigger"]');
}
export function openWorkspaceDropdown() {
return getWorkspaceDropdownTrigger().click();
}
export function getWorkspaceList() {
return cy.get('[data-testid="workspace-list"]');
}
export function getWorkspaceItems() {
return cy.get('[data-testid="workspace-item"]');
}
export function getWorkspaceMemberCounts() {
return cy.get('[data-testid="workspace-member-count"]');
}
export function getUserEmailInDropdown() {
return cy.get('[data-testid="user-email"]');
}