Hello! Anyone know why I am getting the following message from this code please?
Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'.ts(2345)
and my actual test run works, it navigates to the baseURL and the test passes! So I don't understand why that error? Using VS Code. Also a total noob to TypeScript, Node, VSCode and Playwright, sorry!
This thread is trying to answer question "Why am I getting a TypeScript error about baseURL being 'string | undefined' when my test passes?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].