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

2 lines
2.0 KiB
JavaScript

import*as t from"react";import r from"react-dom";import e,{PrimeReactContext as n}from"primereact/api";import{useMountEffect as o,useUpdateEffect as i,useUnmountEffect as l}from"primereact/hooks";import{ObjectUtils as u,DomHandler as a}from"primereact/utils";function f(t){if(Array.isArray(t))return t}function c(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,l,u=[],a=!0,f=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;a=!1}else for(;!(a=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);a=!0);}catch(t){f=!0,o=t}finally{try{if(!a&&null!=e.return&&(l=e.return(),Object(l)!==l))return}finally{if(f)throw o}}return u}}function p(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function m(t,r){if(t){if("string"==typeof t)return p(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?p(t,r):void 0}}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d={defaultProps:{__TYPE:"Portal",element:null,appendTo:null,visible:!1,onMounted:null,onUnmounted:null,children:void 0},getProps:function(t){return u.getMergedProps(t,d.defaultProps)},getOtherProps:function(t){return u.getDiffProps(t,d.defaultProps)}},y=t.memo((function(p){var y,v,b=d.getProps(p),h=t.useContext(n),g=t.useState(b.visible&&a.isClient()),P=(v=2,f(y=g)||c(y,v)||m(y,v)||s()),M=P[0],A=P[1];o((function(){a.isClient()&&!M&&(A(!0),b.onMounted&&b.onMounted())})),i((function(){b.onMounted&&b.onMounted()}),[M]),l((function(){b.onUnmounted&&b.onUnmounted()}));var S=b.element||b.children;if(S&&M){var T=b.appendTo||h&&h.appendTo||e.appendTo;return u.isFunction(T)&&(T=T()),T||(T=document.body),"self"===T?S:r.createPortal(S,T)}return null}));y.displayName="Portal";export{y as Portal};