Skip to content

Commit

Permalink
fix puppeteer hide alert
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchristina committed Dec 30, 2024
1 parent 885ad51 commit 5f92489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/e2e/puppeteer/__tests__/render-thoughts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import path from 'path'
import configureSnapshots from '../configureSnapshots'
import click from '../helpers/click'
import clickThought from '../helpers/clickThought'
import hide from '../helpers/hide'
import hideHUD from '../helpers/hideHUD'
import keyboard from '../helpers/keyboard'
import paste from '../helpers/paste'
Expand Down Expand Up @@ -185,7 +186,7 @@ describe('Font Size: 22', () => {
await click('[data-testid=increase-font]') // 22

// close alert
await click('[data-testid=close-button]')
await hide('[data-testid=alert]')

// scroll to top
await scroll(0, 0)
Expand Down
3 changes: 2 additions & 1 deletion src/e2e/puppeteer/__tests__/url.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'path'
import configureSnapshots from '../configureSnapshots'
import click from '../helpers/click'
import hide from '../helpers/hide'
import hideHUD from '../helpers/hideHUD'
import paste from '../helpers/paste'
import press from '../helpers/press'
Expand Down Expand Up @@ -81,7 +82,7 @@ describe('multiline', () => {
await click('[data-testid=decrease-font]') // 13

// close alert
await click('[data-testid=close-button]')
await hide('[data-testid=alert]')

// scroll to top
await scroll(0, 0)
Expand Down

0 comments on commit 5f92489

Please sign in to comment.