(textInputOutput.spec.ts): remove redundant expectations for contentOutput variable to improve test readability

This commit is contained in:
cristhianzl 2024-04-19 14:15:48 -03:00
commit d87456f29c

View file

@ -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("");
});