From d8b94a2d33ec6102835f58c2d80ae1030189e835 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 30 Sep 2021 23:41:06 -0500 Subject: [PATCH] innerHTML, firstChild test --- tests/platform/anchor/anchor.spec.ts | 4 ++++ tests/platform/anchor/index.html | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/tests/platform/anchor/anchor.spec.ts b/tests/platform/anchor/anchor.spec.ts index 243315c0..3039ac76 100644 --- a/tests/platform/anchor/anchor.spec.ts +++ b/tests/platform/anchor/anchor.spec.ts @@ -14,4 +14,8 @@ test('anchor', async ({ page }) => { await page.waitForSelector('.testCreateAnchorAppend'); const testCreateAnchorAppend = page.locator('#testCreateAnchorAppend'); await expect(testCreateAnchorAppend).toHaveText('/platform/anchor/append-child'); + + await page.waitForSelector('.testInnerHtmlFirstChild'); + const testInnerHtmlFirstChild = page.locator('#testInnerHtmlFirstChild'); + await expect(testInnerHtmlFirstChild).toHaveText('#'); }); diff --git a/tests/platform/anchor/index.html b/tests/platform/anchor/index.html index e02bda2d..b2eb68da 100644 --- a/tests/platform/anchor/index.html +++ b/tests/platform/anchor/index.html @@ -51,7 +51,7 @@ } - +

Anchor