Skip to content

Commit

Permalink
tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfrank committed Nov 15, 2024
1 parent eb880d1 commit 46cc0b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/centering.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ test.beforeEach(async ({ page }) => {
test('Change position when clicking in the viewport', async ({ page }) => {
await page.goto('/?item=2023_84_40_2_0139_00061830', { waitUntil: 'networkidle' })

await expect(page.locator('css=skraafoto-viewport')).toContainText('koordinat 722119 Ø, 6178801 N set fra nord.')
await expect(page.locator('skraafoto-viewport')).toContainText('koordinat 722119 Ø, 6178801 N set fra nord.')
await expect(page.getByTitle('Billede af området omkring koordinat 722119 Ø, 6178801 N set fra øst.')).toBeDefined()

const centerTool = await page.getByTitle('Vælg en ny position')
const centerTool = await page.locator('skraafoto-pin-tool button')
if (centerTool) {
await centerTool.click()
await page.mouse.click(200,200)
Expand Down

0 comments on commit 46cc0b0

Please sign in to comment.