From 5f924897e3a9c4c2826700749f9d0ecb6469bfb8 Mon Sep 17 00:00:00 2001 From: Christina Yang Date: Sun, 29 Dec 2024 21:03:14 -0800 Subject: [PATCH] fix puppeteer hide alert --- src/e2e/puppeteer/__tests__/render-thoughts.ts | 3 ++- src/e2e/puppeteer/__tests__/url.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/e2e/puppeteer/__tests__/render-thoughts.ts b/src/e2e/puppeteer/__tests__/render-thoughts.ts index 53ac4ff212..8d60c2a34c 100644 --- a/src/e2e/puppeteer/__tests__/render-thoughts.ts +++ b/src/e2e/puppeteer/__tests__/render-thoughts.ts @@ -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' @@ -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) diff --git a/src/e2e/puppeteer/__tests__/url.ts b/src/e2e/puppeteer/__tests__/url.ts index 2dc550412b..044c326104 100644 --- a/src/e2e/puppeteer/__tests__/url.ts +++ b/src/e2e/puppeteer/__tests__/url.ts @@ -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' @@ -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)