Skip to content

Commit

Permalink
Fix up camera movement test locator
Browse files Browse the repository at this point in the history
  • Loading branch information
franknoirot committed Feb 14, 2025
1 parent 2269900 commit 16f5d84
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions e2e/playwright/testing-camera-movement.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,7 @@ test.describe('Testing Camera Movement', { tag: ['@skipWin'] }, () => {
exact: true,
})
const userSettingsTab = page.getByRole('radio', { name: 'User' })
const mouseControlsSetting = page
.locator('#mouseControls')
.getByRole('combobox')
const mouseControlsSetting = () => page.locator('#camera-controls').first()
const mouseControlSuccesToast = page.getByText(
'Set mouse controls to "Solidworks"'
)
Expand Down Expand Up @@ -390,9 +388,14 @@ test.describe('Testing Camera Movement', { tag: ['@skipWin'] }, () => {
await settingsLink.click()
await expect(settingsDialogHeading).toBeVisible()
await userSettingsTab.click()
await mouseControlsSetting.scrollIntoViewIfNeeded()
await mouseControlsSetting.selectOption({ label: 'Solidworks' })
await expect(mouseControlsSetting).toHaveValue('Solidworks')
const setting = mouseControlsSetting()
await expect(setting).toBeAttached()
await setting.scrollIntoViewIfNeeded()
await setting.selectOption({ label: 'Solidworks' })
await expect(setting, 'Setting value did not change').toHaveValue(
'Solidworks',
{ timeout: 120_000 }
)
await expect(mouseControlSuccesToast).toBeVisible()
await settingsCloseButton.click()
})
Expand Down

0 comments on commit 16f5d84

Please sign in to comment.