Skip to content

Commit

Permalink
Remove focus before click
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron authored Feb 28, 2024
1 parent a26c080 commit 6abe0ac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions frontend/puppeteer/e2e/mission_side_window.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ describe('Side window', () => {
console.log(`Found ${years.length} year`)
years.forEach(async year => {
year.click()
await wait(500)
await wait(200)
})
await wait(1000)

/**
* Open first control in side window
Expand All @@ -64,7 +65,6 @@ describe('Side window', () => {
if (!firstControlButton) {
throw new Error('The first control button is undefined')
}
await firstControlButton.focus()
await firstControlButton.click()

await wait(2000)
Expand All @@ -89,7 +89,6 @@ describe('Side window', () => {
if (!secondControlButton) {
throw new Error('The second control button is undefined')
}
await secondControlButton.focus()
await secondControlButton.click()

/**
Expand All @@ -103,7 +102,6 @@ describe('Side window', () => {
/**
* Open first control again
*/
await firstControlButton.focus()
await firstControlButton.click()

/**
Expand Down

0 comments on commit 6abe0ac

Please sign in to comment.