From d87456f29c49e18a84c3fb89ebf4049d2a003126 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 19 Apr 2024 14:15:48 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20(textInputOutput.spec.ts):=20remove?= =?UTF-8?q?=20redundant=20expectations=20for=20contentOutput=20variable=20?= =?UTF-8?q?to=20improve=20test=20readability?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/tests/end-to-end/textInputOutput.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/tests/end-to-end/textInputOutput.spec.ts b/src/frontend/tests/end-to-end/textInputOutput.spec.ts index 1b4a10d43..5312cb96b 100644 --- a/src/frontend/tests/end-to-end/textInputOutput.spec.ts +++ b/src/frontend/tests/end-to-end/textInputOutput.spec.ts @@ -131,7 +131,6 @@ test("TextInputOutputComponent", async ({ page }) => { await page.getByText("Text Output", { exact: true }).nth(2).click(); let contentOutput = await page.getByPlaceholder("Empty").inputValue(); expect(contentOutput).not.toBe(null); - expect(contentOutput).not.toBe(""); await page.keyboard.press("Escape"); @@ -149,7 +148,6 @@ test("TextInputOutputComponent", async ({ page }) => { await page.getByText("Outputs", { exact: true }).nth(1).click(); await page.getByText("Text Output", { exact: true }).nth(2).click(); - contentOutput = await page.getByPlaceholder("Empty").textContent(); + contentOutput = await page.getByPlaceholder("Empty").inputValue(); expect(contentOutput).not.toBe(null); - expect(contentOutput).not.toBe(""); });