Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhid1239 committed Nov 13, 2023
1 parent 8d5d875 commit a913777
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/api/siriService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export async function getSiriRideWithRelated(
}

export async function getSiriStopHitTimesAsync(route: BusRoute, stop: BusStop, timestamp: Moment) {

const rides = await getRidesAsync(route, stop, timestamp)
if (rides.length === 0) {
return []
Expand Down
6 changes: 0 additions & 6 deletions src/complaint/complaint.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ try {
await page.getByLabel('מספר זהות').fill(complaint.id)
await page.getByLabel('טלפון נייד', { exact: true }).fill(complaint.phone)
await page.getByRole('textbox', { name: 'דואר אלקטרוני' }).fill(complaint.email)


await page.getByRole('button', { name: 'לשלב הבא' }).click()
// await page.getByLabel('נושא הפנייה').getByLabel('בחירה מהרשימה').first().click()
// await new Promise((r) => setTimeout(r, 100))
Expand All @@ -57,8 +55,6 @@ try {
await new Promise((r) => setTimeout(r, 100))
await page.getByText(complaintTypes[0]).click()
await new Promise((r) => setTimeout(r, 100))


await page.getByRole('button', { name: 'לשלב הבא' }).click()
await page.getByLabel('חברת האוטובוסים (מפעיל)').fill(complaint.operator)
await page.getByRole('textbox', { name: 'מספר רישוי' }).fill(complaint.licensePlate)
Expand All @@ -69,11 +65,9 @@ try {
await page
.getByRole('textbox', { name: 'תוכן הפנייה' })
.fill('האוטובוס עצר בתחנה ולא נסע עד שעה מאוחרת')

await page.getByRole('textbox', { name: 'מספר קו' }).fill(complaint.lineNumber)
await page.getByLabel('מוצא/ יעד (כיוון )').fill(complaint.routeName)


for (let i = 0; i < 10 && (await page.getByText('הנחיות לצירוף מסמכים').isHidden()); i++) {
// retry until it works
await page.getByRole('button', { name: 'לשלב הבא' }).click()
Expand Down
6 changes: 3 additions & 3 deletions src/pages/components/timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ type TimelineProps = {
className?: string
// timestamps can be both siri and gtfs timestamps
timestamps:
| GtfsRideStopPydanticModel[]
| (SiriVehicleLocationWithRelatedPydanticModel & Coordinates)[]
| Date[]
| GtfsRideStopPydanticModel[]
| (SiriVehicleLocationWithRelatedPydanticModel & Coordinates)[]
| Date[]
totalHeight: number
pointType: PointType
timestampToTop: (timestamp: Moment) => number
Expand Down

0 comments on commit a913777

Please sign in to comment.