/** * 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, UtamBasePageObject as _UtamBasePageObject } from '@utam/core'; import _LoadingTile from 'salesforce-pageobjects/experience/ui/gen/canvas/pageObjects/loadingTile'; import _Spinner from 'salesforce-pageobjects/lightning/pageObjects/spinner'; import _ButtonIcon from 'salesforce-pageobjects/lightning/pageObjects/buttonIcon'; import _Button from 'salesforce-pageobjects/lightning/pageObjects/button'; import _Input from 'salesforce-pageobjects/lightning/pageObjects/input'; /** * A component that allows users to view, add, and delete goals related to a meeting. It displays a list of goals, provides the ability to add a new goal, and includes buttons for saving or canceling changes. The component can show loading indicators when fetching data and allows for dynamic content updates. * Selector: src-experience_ui_gen_canvas-/tile-meeting-goals * generated from JSON dist/experience/ui/gen/canvas/tileMeetingGoals.utam.json * @version 2026-03-09T13:56:35.562Z * @author Salesforce */ export default class TileMeetingGoals extends _UtamBasePageObject { constructor(driver: _Driver, element?: _Element, locator?: _Locator); /** * Check if the goals list is visible * @return boolean */ isGoalsListVisible(): Promise; /** * Get the text content of a goal * @return string * @param _goalItemIndex index of parent element */ getGoalContent(_goalItemIndex: number): Promise; /** * Check if a goal item is present in the list * @return boolean[] * @param _goalItemIndex index of parent element */ isGoalItemPresent(_goalItemIndex: number): Promise; waitForLoadingTile(): Promise<_LoadingTile>; waitForSpinner(): Promise<_Spinner>; /** * Represents the delete button for a goal, allowing it to be removed from the list. * @param _goalItemIndex index of parent element */ getDeleteGoalButton(_goalItemIndex: number): Promise<_ButtonIcon | null>; /** * Represents the button to add a new goal. * @param selectorStr CSS selector parameter */ getAddGoalButton(selectorStr: string): Promise<_Button | null>; /** * Represents the input field for typing a new goal. * @param selectorStr CSS selector parameter */ getNewGoalInput(selectorStr: string): Promise<_Input | null>; /** * Represents the cancel button to discard changes. * @param selectorStr CSS selector parameter */ getCancelButton(selectorStr: string): Promise<_Button | null>; /** * Represents the save button to save the new goal. * @param selectorStr CSS selector parameter */ getSaveButton(selectorStr: string): Promise<_Button | null>; /** * Represents the loading tile indicating content generation. */ getLoadingTile(): Promise<_LoadingTile | null>; /** * Represents a spinner indicating a loading state. */ getSpinner(): Promise<_Spinner | null>; }