mirror of
https://github.com/Automattic/harper.git
synced 2025-12-23 08:48:15 +00:00
hotfix(chrome-ext): another unforeseen issue with the HN tests
This commit is contained in:
parent
64017175b9
commit
e38cf90610
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue