Skip to content

Commit

Permalink
test: should find your
Browse files Browse the repository at this point in the history
  • Loading branch information
NoamGaash committed Sep 25, 2024
1 parent 8803043 commit 10bd0b2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/singlelineTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test.describe('Single line page tests', () => {
let singleLinePage: SinglelinePage

test.beforeEach(async ({ page, advancedRouteFromHAR }) => {
advancedRouteFromHAR('tests/HAR/singleline.har', {
await advancedRouteFromHAR('tests/HAR/singleline.har', {
updateContent: 'embed',
update: false,
notFound: 'abort',
Expand Down Expand Up @@ -43,3 +43,18 @@ test.describe('Single line page tests', () => {
await singleLinePage.selectRandomRoute()
})
})

test('should find route', async ({ page }) => {
await page.getByRole('link', { name: 'מפה לפי קו' }).click()
await page.getByLabel('חברה מפעילה').click()
await page.getByRole('option', { name: 'בית שמש אקספרס' }).click()
await page.getByPlaceholder('לדוגמה: 17א').fill('6')
await page
.locator('div')
.filter({ hasText: /^בחירת מסלול נסיעה \(2 אפשרויות\)$/ })
.getByLabel('Open')
.click()
await page
.getByRole('option', { name: 'בן איש חי/יוסף קארו-בית שמש ⟵ זכריה הנביא/אליהו הנביא-בית שמש' })
.click()
})

0 comments on commit 10bd0b2

Please sign in to comment.