hotfix(chrome-ext): another unforeseen issue with the HN tests

This commit is contained in:
Elijah Potter 2025-11-18 12:49:01 -07:00
parent 64017175b9
commit e38cf90610

View file

@ -29,6 +29,9 @@ test('Hacker News wraps correctly', async ({ page }) => {
await page.waitForTimeout(2000);
await page.reload();
// Needed because this element has a variable height and may offset the highlight boxes by an unknown amount.
await page.locator('.toptext').evaluate((el) => el.remove());
const editor = getTextarea(page);
await replaceEditorContent(
editor,
@ -49,6 +52,9 @@ test('Hacker News scrolls correctly', async ({ page }) => {
await page.waitForTimeout(2000);
await page.reload();
// Needed because this element has a variable height and may offset the highlight boxes by an unknown amount.
await page.locator('.toptext').evaluate((el) => el.remove());
const editor = getTextarea(page);
await replaceEditorContent(
editor,