feat: add health check endpoint, file upload result handling, and Playwright E2E tests
- Add /health endpoint with anonymous access for monitoring - Add FileUploadResult<T> model and PostMultipartForFileResultAsync for proper upload response handling - Add ApiResult.Success() factory method for interface types - Refactor Login.razor for cleaner code - Add comprehensive Playwright E2E test suite with fixtures and helpers
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
This is not a valid Excel file
|
||||
Just plain text
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"profitCenters": [
|
||||
{ "code": "1AM", "description": "Profit Center 1AM" },
|
||||
{ "code": "1BM", "description": "Profit Center 1BM" },
|
||||
{ "code": "1CM", "description": "Profit Center 1CM" },
|
||||
{ "code": "1PM", "description": "Profit Center 1PM" },
|
||||
{ "code": "2DM", "description": "Profit Center 2DM" },
|
||||
{ "code": "2SM", "description": "Profit Center 2SM" },
|
||||
{ "code": "3TM", "description": "Profit Center 3TM" },
|
||||
{ "code": "4IM", "description": "Profit Center 4IM" },
|
||||
{ "code": "5SM", "description": "Profit Center 5SM" }
|
||||
],
|
||||
"workCenters": [
|
||||
{ "code": "WC001", "description": "Work Center 001" },
|
||||
{ "code": "WC002", "description": "Work Center 002" },
|
||||
{ "code": "WC003", "description": "Work Center 003" }
|
||||
],
|
||||
"operators": [
|
||||
{ "userId": "ADAMSSN", "fullName": "Adams, S N" },
|
||||
{ "userId": "AGNEWA", "fullName": "Agnew, A" },
|
||||
{ "userId": "AGNEWL", "fullName": "Agnew, L" },
|
||||
{ "userId": "ALASMARB", "fullName": "Alasmar, B" },
|
||||
{ "userId": "ALEXIUCG", "fullName": "Alexiuc, G" },
|
||||
{ "userId": "ALLENHY", "fullName": "Allen, H Y" },
|
||||
{ "userId": "ALLENNI", "fullName": "Allen, N I" },
|
||||
{ "userId": "ALURUM", "fullName": "Aluru, M" },
|
||||
{ "userId": "ALVESM1", "fullName": "Alves, M" },
|
||||
{ "userId": "APONTEVE", "fullName": "Aponte, V E" }
|
||||
],
|
||||
"workOrders": [
|
||||
{ "workOrderNumber": "99059700", "itemNumber": "00598004702" },
|
||||
{ "workOrderNumber": "99002260", "itemNumber": "82070000028" },
|
||||
{ "workOrderNumber": "99002259", "itemNumber": "82070000027" },
|
||||
{ "workOrderNumber": "99002258", "itemNumber": "82070000019" },
|
||||
{ "workOrderNumber": "99002257", "itemNumber": "82070000018" },
|
||||
{ "workOrderNumber": "99002256", "itemNumber": "82070000017" },
|
||||
{ "workOrderNumber": "99002255", "itemNumber": "00855140333" },
|
||||
{ "workOrderNumber": "99002254", "itemNumber": "00855480834" },
|
||||
{ "workOrderNumber": "99002252", "itemNumber": "82070000016" },
|
||||
{ "workOrderNumber": "99002251", "itemNumber": "00855910448" },
|
||||
{ "workOrderNumber": "99002250", "itemNumber": "82070000015" },
|
||||
{ "workOrderNumber": "99002249", "itemNumber": "00855480834" },
|
||||
{ "workOrderNumber": "99002248", "itemNumber": "00855910446" },
|
||||
{ "workOrderNumber": "99002247", "itemNumber": "00855910447" },
|
||||
{ "workOrderNumber": "99002246", "itemNumber": "82900171601" }
|
||||
],
|
||||
"itemNumbers": [
|
||||
{ "itemNumber": "00598004702", "description": "Item 598004702" },
|
||||
{ "itemNumber": "82070000028", "description": "Item 82070000028" },
|
||||
{ "itemNumber": "82070000027", "description": "Item 82070000027" },
|
||||
{ "itemNumber": "00855140333", "description": "Item 855140333" },
|
||||
{ "itemNumber": "00855480834", "description": "Item 855480834" }
|
||||
],
|
||||
"componentLots": [
|
||||
{ "lotNumber": "LOT001", "itemNumber": "00598004702" },
|
||||
{ "lotNumber": "LOT002", "itemNumber": "82070000028" },
|
||||
{ "lotNumber": "LOT003", "itemNumber": "82070000027" }
|
||||
],
|
||||
"partOperations": [
|
||||
{
|
||||
"itemNumber": "00598004702",
|
||||
"operationNumber": "100",
|
||||
"misNumber": "MIS001",
|
||||
"misRevision": "A"
|
||||
},
|
||||
{
|
||||
"itemNumber": "00598004702",
|
||||
"operationNumber": "200",
|
||||
"misNumber": "MIS002",
|
||||
"misRevision": "B"
|
||||
},
|
||||
{
|
||||
"itemNumber": "82070000028",
|
||||
"operationNumber": "100",
|
||||
"misNumber": "MIS003",
|
||||
"misRevision": "A"
|
||||
}
|
||||
],
|
||||
"dateRanges": {
|
||||
"recent": {
|
||||
"min": "2020-01-01",
|
||||
"max": "2020-09-01",
|
||||
"description": "Recent data range"
|
||||
},
|
||||
"midRange": {
|
||||
"min": "2018-01-01",
|
||||
"max": "2019-12-31",
|
||||
"description": "Mid-range data"
|
||||
},
|
||||
"historical": {
|
||||
"min": "2016-01-01",
|
||||
"max": "2017-12-31",
|
||||
"description": "Historical data"
|
||||
},
|
||||
"sameDay": {
|
||||
"min": "2020-06-15",
|
||||
"max": "2020-06-15",
|
||||
"description": "Single day range"
|
||||
},
|
||||
"startBoundary": {
|
||||
"min": "1905-01-20",
|
||||
"max": "1905-12-31",
|
||||
"description": "Start of data range"
|
||||
},
|
||||
"endBoundary": {
|
||||
"min": "2020-08-01",
|
||||
"max": "2020-09-01",
|
||||
"description": "End of data range"
|
||||
}
|
||||
},
|
||||
"invalidData": {
|
||||
"workOrders": {
|
||||
"invalidFormat": "ABC123XYZ",
|
||||
"specialChars": "99059700!@#",
|
||||
"empty": "",
|
||||
"whitespace": " "
|
||||
},
|
||||
"profitCenters": {
|
||||
"invalid": "INVALID",
|
||||
"specialChars": "1AM!@#",
|
||||
"empty": "",
|
||||
"tooLong": "1AMEXTRALONG"
|
||||
},
|
||||
"dates": {
|
||||
"invalidFormat": "31-12-2020",
|
||||
"future": {
|
||||
"min": "2025-01-01",
|
||||
"max": "2025-12-31"
|
||||
},
|
||||
"reversed": {
|
||||
"min": "2020-09-01",
|
||||
"max": "2020-01-01"
|
||||
}
|
||||
}
|
||||
},
|
||||
"testCredentials": {
|
||||
"validUser": {
|
||||
"username": "testuser",
|
||||
"password": "testpass"
|
||||
},
|
||||
"invalidUser": {
|
||||
"username": "invaliduser",
|
||||
"password": "wrongpassword"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user