/** * Copyright (c) 2025, Salesforce, Inc. * All rights reserved. * For full license text, see the LICENSE file or https://utam.dev/salesforce/license */ import { Driver as _Driver, Element as _Element, Locator as _Locator, ContainerCtor as _ContainerCtor, UtamBasePageObject as _UtamBasePageObject, UtamBaseRootPageObject as _UtamBaseRootPageObject } from '@utam/core'; import _Icon from 'salesforce-pageobjects/lightning/pageObjects/icon'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; import _Badge from 'salesforce-pageobjects/lightning/pageObjects/badge'; /** * Component that represents a work item in a backlog, displaying a summary, status badges, and details that can be expanded or collapsed. It optionally shows a "Try again" button if there's an error. * Selector: app_dev_agent-backlog-work-item * generated from JSON dist/app_dev_agent/backlogWorkItem.utam.json * @version 2026-03-09T13:56:34.831Z * @author Salesforce */ declare class BacklogWorkItem extends _UtamBaseRootPageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Toggle the expanded/collapsed state of the section */ toggleSectionExpansion(): Promise; /** * Get the summary text of the work item * @return string */ getSummaryText(): Promise; /** * Get the assignee text of the work item * @return string */ getAssigneeText(): Promise; /** * Check if the section content is expanded and visible * @return string */ isSectionExpanded(attrName: string): Promise; /** * Check if the section content is collapsed and hidden * @return string */ isSectionCollapsed(attrName: string): Promise; /** * Represents the chevron icon indicating the expanded/collapsed state. */ getChevronIcon(): Promise<_Icon>; /** * Represents the slot for custom icons. */ getIconSlot(ContainerCtor: _ContainerCtor): Promise; /** * Represents the "Try again" button visible in the error state. */ getTryAgainButton(): Promise<_Button | null>; /** * Represents the error badge when the work item is in an error state. */ getErrorBadge(): Promise<_Badge | null>; /** * Represents the complete badge when the work item is completed. */ getCompleteBadge(): Promise<_Badge | null>; /** * Represents the recommended badge when the work item is recommended. */ getRecommendBadge(): Promise<_Badge | null>; /** * Represents the to-do badge when the work item is marked as to-do. */ getTodoBadge(): Promise<_Badge | null>; } export = BacklogWorkItem;