feat: enhance Telegram import functionality to support delays and cancellations
- Updated telegramCancellationParser to include parsing for delay notices. - Added new test cases for handling delay messages and stop-point cancellations. - Modified telegramImport integration tests to validate new delay handling. - Enhanced documentation to reflect the addition of delay notifications. - Updated TelegramImportPanel component to accommodate new alert types. - Introduced new fixture files for testing delay and cancellation messages.
This commit is contained in:
5
backend/test/fixtures/telegram-delay-route-4.txt
vendored
Normal file
5
backend/test/fixtures/telegram-delay-route-4.txt
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
Уважаемые пассажиры!
|
||||
будут выполняться рейсы с опозданием:
|
||||
|
||||
ПО МАРШРУТУ № 4 С ОСТАНОВКИ МАРИНЕНКО НА 19.05
|
||||
С ОСТАНОВКИ БОРОВУХА НА 20.00
|
||||
7
backend/test/fixtures/telegram-stop-point-cancellation.txt
vendored
Normal file
7
backend/test/fixtures/telegram-stop-point-cancellation.txt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Уважаемые пассажиры!
|
||||
Не будут выполняться следующие рейсы:
|
||||
|
||||
По маршруту № 4 с остановочного пункта
|
||||
|
||||
"Мариненко" на 6.00, 7.30
|
||||
"Боровуха" на 6.40, 8.15
|
||||
Reference in New Issue
Block a user