60e2149072
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.
79 lines
2.6 KiB
JavaScript
Executable File
79 lines
2.6 KiB
JavaScript
Executable File
'use strict';
|
|
/**
|
|
* @license Angular
|
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
* License: MIT
|
|
*/
|
|
|
|
// packages/zone.js/lib/extra/bluebird.js
|
|
function patchBluebird(Zone2) {
|
|
Zone2.__load_patch("bluebird", (global, Zone3, api) => {
|
|
const BLUEBIRD = "bluebird";
|
|
Zone3[Zone3.__symbol__(BLUEBIRD)] = function patchBluebird2(Bluebird) {
|
|
const bluebirdApis = ["then", "spread", "finally"];
|
|
bluebirdApis.forEach((bapi) => {
|
|
api.patchMethod(Bluebird.prototype, bapi, (delegate) => (self, args) => {
|
|
const zone = Zone3.current;
|
|
for (let i = 0; i < args.length; i++) {
|
|
const func = args[i];
|
|
if (typeof func === "function") {
|
|
args[i] = function() {
|
|
const argSelf = this;
|
|
const argArgs = arguments;
|
|
return new Bluebird((res, rej) => {
|
|
zone.scheduleMicroTask("Promise.then", () => {
|
|
try {
|
|
res(func.apply(argSelf, argArgs));
|
|
} catch (error) {
|
|
rej(error);
|
|
}
|
|
});
|
|
});
|
|
};
|
|
}
|
|
}
|
|
return delegate.apply(self, args);
|
|
});
|
|
});
|
|
if (typeof window !== "undefined") {
|
|
window.addEventListener("unhandledrejection", function(event) {
|
|
const error = event.detail && event.detail.reason;
|
|
if (error && error.isHandledByZone) {
|
|
event.preventDefault();
|
|
if (typeof event.stopImmediatePropagation === "function") {
|
|
event.stopImmediatePropagation();
|
|
}
|
|
}
|
|
});
|
|
} else if (typeof process !== "undefined") {
|
|
process.on("unhandledRejection", (reason, p) => {
|
|
if (reason && reason.isHandledByZone) {
|
|
const listeners = process.listeners("unhandledRejection");
|
|
if (listeners) {
|
|
process.removeAllListeners("unhandledRejection");
|
|
process.nextTick(() => {
|
|
listeners.forEach((listener) => process.on("unhandledRejection", listener));
|
|
});
|
|
}
|
|
}
|
|
});
|
|
}
|
|
Bluebird.onPossiblyUnhandledRejection(function(e, promise) {
|
|
try {
|
|
Zone3.current.runGuarded(() => {
|
|
e.isHandledByZone = true;
|
|
throw e;
|
|
});
|
|
} catch (err) {
|
|
err.isHandledByZone = false;
|
|
api.onUnhandledError(err);
|
|
}
|
|
});
|
|
global.Promise = Bluebird;
|
|
};
|
|
});
|
|
}
|
|
|
|
// packages/zone.js/lib/extra/rollup-bluebird.js
|
|
patchBluebird(Zone);
|