Files
gnezim 60e2149072 Add comprehensive e2e test suites for Tasks 16-25
Tasks 16-20: Online Board Tests (Search/Filter, Tabs, Flight List, Details Modal, Time/Date)
- Task 16: Search & Filter tests (37 tests) - departure/arrival cities, passenger count, cabin class
- Task 17: Arrival/Departure Tabs tests (45 tests) - tab switching, flight display, sorting
- Task 18: Flight List View tests (50 tests) - display, sorting, filtering, pagination, loading states
- Task 19: Flight Details Modal tests (40 tests) - opening/closing, content display, actions
- Task 20: Time & Date Filter tests (43 tests) - date selection, time ranges, calendar navigation

Tasks 21-25: Flight Details Tests (Flight Info, Passengers, Seats, Services, Fares)
- Task 21: Flight Info Display tests (40 tests) - basic info, airports, route visualization, timeline
- Task 22: Passenger Info tests (50 tests) - passenger list, details, services, special requirements
- Task 23: Seat Selection tests (50 tests) - seat map, selection, categories, recommendations
- Task 24: Service Selection tests (25 tests) - baggage, meals, seats, summary
- Task 25: Fare Display tests (55 tests) - fare breakdown, comparisons, discounts, refunds

All tests follow AAA pattern and use data-testid selectors matching Angular version.
Total: 245 tests across 10 feature suites.
2026-04-05 19:25:03 +03:00

194 lines
5.5 KiB
TypeScript

/**
*
* Rating component is a star based selection input.
*
* [Live Demo](https://www.primereact.org/rating/)
*
* @module rating
*
*/
import * as React from 'react';
import { ComponentHooks } from '../componentbase/componentbase';
import { PassThroughOptions } from '../passthrough';
import { TooltipPassThroughOptions } from '../tooltip/tooltip';
import { TooltipOptions } from '../tooltip/tooltipoptions';
import { FormEvent } from '../ts-helpers';
import { IconType, PassThroughType } from '../utils';
export declare type RatingPassThroughType<T> = PassThroughType<T, RatingPassThroughMethodOptions>;
/**
* Custom passthrough(pt) option method.
*/
export interface RatingPassThroughMethodOptions {
props: RatingProps;
context: RatingContext;
}
/**
* Custom passthrough(pt) options.
* @see {@link RatingProps.pt}
*/
export interface RatingPassThroughOptions {
/**
* Uses to pass attributes to the root's DOM element.
*/
root?: RatingPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Uses to pass attributes to the cancel icon's DOM element.
*/
cancelIcon?: RatingPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
/**
* Uses to pass attributes to the item's DOM element.
*/
item?: RatingPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Uses to pass attributes to the cancel item's DOM element.
*/
cancelItem?: RatingPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Uses to pass attributes to the on icon's DOM element.
*/
onIcon?: RatingPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
/**
* Uses to pass attributes to the off icon's DOM element.
*/
offIcon?: RatingPassThroughType<React.SVGProps<SVGSVGElement> | React.HTMLAttributes<HTMLSpanElement>>;
/**
* Uses to pass attributes tooltip's DOM element.
* @type {TooltipPassThroughOptions}
*/
tooltip?: TooltipPassThroughOptions;
/**
* Used to manage all lifecycle hooks
* @see {@link ComponentHooks}
*/
hooks?: ComponentHooks;
}
/**
* Defines current options in Rating component.
*/
export interface RatingContext {
/**
* Current active state of the item as a boolean.
* @defaultValue false
*/
active: boolean;
}
/**
* Custom change event.
* @see {@link RatingProps.onChange}
* @extends {FormEvent}
* @event
*/
interface RatingChangeEvent extends FormEvent<number> {}
/**
* Defines valid properties in Rating component. In addition to these, all properties of HTMLDivElement can be used in this component.
* @group Properties
*/
export interface RatingProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
/**
* Value of the rating.
*/
value?: number | undefined;
/**
* When present, it specifies that the element should be disabled.
* @defaultValue false
*/
disabled?: boolean | undefined;
/**
* When present, it specifies that the input cannot be typed.
* @defaultValue false
*/
readOnly?: boolean | undefined;
/**
* Number of stars.
* @defaultValue 5
*/
stars?: number | undefined;
/**
* When specified a cancel icon is displayed to allow removing the value.
* @defaultValue true
*/
cancel?: boolean | undefined;
/**
* Content of the tooltip.
*/
tooltip?: string | undefined;
/**
* Configuration of the tooltip, refer to the tooltip documentation for more information.
*/
tooltipOptions?: TooltipOptions | undefined;
/**
* Callback to invoke on value change.
* @param {RatingChangeEvent} event - Custom change event.
*/
onChange?(event: RatingChangeEvent): void;
/**
* Used to get the child elements of the component.
* @readonly
*/
children?: React.ReactNode | undefined;
/**
* Icon for the on state.
*/
onIcon?: IconType<RatingProps> | undefined;
/**
* Icon for the off state.
*/
offIcon?: IconType<RatingProps> | undefined;
/**
* Icon for the cancelable state.
*/
cancelIcon?: IconType<RatingProps> | undefined;
/**
* Properties of the cancel icon.
*/
cancelIconProps?: React.HTMLAttributes<HTMLSpanElement>;
/**
* Properties of the on icon.
*/
onIconProps?: React.HTMLAttributes<HTMLSpanElement>;
/**
* Properties of the off icon.
*/
offIconProps?: React.HTMLAttributes<HTMLSpanElement>;
/**
* Uses to pass attributes to DOM elements inside the component.
* @type {RatingPassThroughOptions}
*/
pt?: RatingPassThroughOptions;
/**
* Used to configure passthrough(pt) options of the component.
* @type {PassThroughOptions}
*/
ptOptions?: PassThroughOptions;
/**
* When enabled, it removes component related styles in the core.
* @defaultValue false
*/
unstyled?: boolean;
}
/**
* **PrimeReact - Rating**
*
* _Rating component is a star based selection input._
*
* [Live Demo](https://www.primereact.org/rating/)
* --- ---
* ![PrimeReact](https://primefaces.org/cdn/primereact/images/logo-100.png)
*
* @group Component
*/
export declare class Rating extends React.Component<RatingProps, any> {
/**
* Used to get container element.
* @return {HTMLDivElement | null} Container element
*/
public getElement(): HTMLDivElement | null;
}