Skip to content

Commit

Permalink
test: enhance e2e tests for location dialog and my location button
Browse files Browse the repository at this point in the history
  • Loading branch information
MeesoPost committed Dec 30, 2024
1 parent b178363 commit 5de0d3b
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions test/e2e/step1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ parameters.slice(0, 1).forEach(async ({ name, testConfig, forcedColors }) => {

await textbox.focus()

page.keyboard.insertText('lamp kapot')
await textbox.fill('lamp kapot')

await textbox.blur()
})
Expand Down Expand Up @@ -209,13 +209,39 @@ parameters.slice(0, 1).forEach(async ({ name, testConfig, forcedColors }) => {

await page.goto(pageURL)

// const combobox = page.getByRole('combobox', { name: 'Adres' })
const combobox = page.getByRole('combobox')
const combobox = page.getByRole('combobox', { name: 'Adres' })

await expect(combobox).toBeVisible()

await combobox.focus()
})

test('Open location dialog', async ({ context, page }) => {
formStateFixture(context, { description: 'lamp' })

await page.goto(pageURL)

const locationButton = page.getByRole('button', {
name: 'Kies Locatie',
})

await expect(locationButton).toBeVisible()

await locationButton.click()
})

test('Click my location button', async ({ context, page }) => {
formStateFixture(context, { description: 'lamp' })
await page.goto(pageURL)

const myLocationButton = page.getByRole('button', {
name: 'Mijn locatie',
})

await expect(myLocationButton).toBeVisible()

await myLocationButton.click()
})
})
})
})

0 comments on commit 5de0d3b

Please sign in to comment.