From 0dc5852da0c11186bc4c81380463658cfff47014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dalibor=20To=C5=A1i=C4=87?= <36071220+dalibortosic00@users.noreply.github.com> Date: Fri, 5 Jul 2024 16:14:36 +0200 Subject: [PATCH] fix shadow-dom test (#5674) --- playwright/integration/examples/shadow-dom.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/playwright/integration/examples/shadow-dom.test.ts b/playwright/integration/examples/shadow-dom.test.ts index 304c810bd..76ffb6fc6 100644 --- a/playwright/integration/examples/shadow-dom.test.ts +++ b/playwright/integration/examples/shadow-dom.test.ts @@ -24,10 +24,9 @@ test.describe('shadow-dom example', () => { await expect(textbox).toHaveCount(1) // Clear any existing text and type new text into the textbox - await textbox.fill('') // Clears the textbox - await textbox.type('Hello, Playwright!') + await textbox.fill('Hello, Playwright!') // Assert that the textbox contains the correct text - await expect(textbox).toHaveValue('Hello, Playwright!') + await expect(textbox).toHaveText('Hello, Playwright!') }) })