feat: add Playwright configuration and initial e2e test for authentication
- Created Playwright configuration file to set up testing environment. - Added a new e2e test for user authentication in login.spec.ts. - Updated tsconfig.node.json to include playwright.config.ts. - Enhanced vite.config.ts to include API proxying for backend integration. - Added a placeholder for last run test results in .last-run.json.
This commit is contained in:
@@ -12,8 +12,10 @@ from .base import (
|
||||
StationModel,
|
||||
TrackCreate,
|
||||
TrackModel,
|
||||
TrainScheduleCreate,
|
||||
TrainCreate,
|
||||
TrainModel,
|
||||
UserCreate,
|
||||
to_camel,
|
||||
)
|
||||
|
||||
@@ -29,7 +31,9 @@ __all__ = [
|
||||
"StationModel",
|
||||
"TrackCreate",
|
||||
"TrackModel",
|
||||
"TrainScheduleCreate",
|
||||
"TrainCreate",
|
||||
"TrainModel",
|
||||
"UserCreate",
|
||||
"to_camel",
|
||||
]
|
||||
|
||||
@@ -85,3 +85,21 @@ class TrainCreate(CamelModel):
|
||||
operator_id: str | None = None
|
||||
home_station_id: str | None = None
|
||||
consist: str | None = None
|
||||
|
||||
|
||||
class TrainScheduleCreate(CamelModel):
|
||||
train_id: str
|
||||
station_id: str
|
||||
sequence_index: int
|
||||
scheduled_arrival: datetime | None = None
|
||||
scheduled_departure: datetime | None = None
|
||||
dwell_seconds: int | None = None
|
||||
|
||||
|
||||
class UserCreate(CamelModel):
|
||||
username: str
|
||||
password_hash: str
|
||||
email: str | None = None
|
||||
full_name: str | None = None
|
||||
role: str = "player"
|
||||
preferences: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user