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.
44 lines
899 B
JavaScript
44 lines
899 B
JavaScript
module.exports = function arch () {
|
|
/**
|
|
* User agent strings that indicate a 64-bit OS.
|
|
* See: http://stackoverflow.com/a/13709431/292185
|
|
*/
|
|
var userAgent = navigator.userAgent
|
|
if ([
|
|
'x86_64',
|
|
'x86-64',
|
|
'Win64',
|
|
'x64;',
|
|
'amd64',
|
|
'AMD64',
|
|
'WOW64',
|
|
'x64_64'
|
|
].some(function (str) {
|
|
return userAgent.indexOf(str) > -1
|
|
})) {
|
|
return 'x64'
|
|
}
|
|
|
|
/**
|
|
* Platform strings that indicate a 64-bit OS.
|
|
* See: http://stackoverflow.com/a/19883965/292185
|
|
*/
|
|
var platform = navigator.platform
|
|
if (platform === 'MacIntel' || platform === 'Linux x86_64') {
|
|
return 'x64'
|
|
}
|
|
|
|
/**
|
|
* CPU class strings that indicate a 64-bit OS.
|
|
* See: http://stackoverflow.com/a/6267019/292185
|
|
*/
|
|
if (navigator.cpuClass === 'x64') {
|
|
return 'x64'
|
|
}
|
|
|
|
/**
|
|
* If none of the above, assume the architecture is 32-bit.
|
|
*/
|
|
return 'x86'
|
|
}
|