Relative Content

Tag Archive for reactjsreact-propse2e-testingplaywright-test

Playwright test failing: props return different values in Playwright testing UI and actual React app on Chrome browser

I am creating an e2e testing for my application using Playwright (version 1.44.1). I have a react 18 application (created with Vite) for a blogs app. When I run the application the UI shows correct props in the React components as well as console logs. However, when I run my Playwright tests in the Playwright GUI the props show different values and so the tests fail. I do not know how this is happening. Any help would be appreciated. Below are my files.