<h3 dir="auto">Your question</h3>
<p dir="auto">Why does the base url not get picked up?<br>
playwirght.config.ts</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
  timeout: 30000,
  globalTimeout: 600000,
  workers: 2,
  projects: [
    {
      name: &quot;chrome&quot;,

      use: {
        headless: false,
        baseURL: 'http://dev.getmyboat.com/',
        channel: 'chrome',
        viewport: { width: 1280, height: 720 },
        ignoreHTTPSErrors: false,
        video: 'on-first-retry',
        screenshot: 'only-on-failure'
      }
    }
  ],

  reporter: [[&quot;dot&quot;], [&quot;json&quot;, { outputFile: &quot;test-result.json&quot; }],
  ['experimental-allure-playwright']],
  // globalSetup: require.resolve('./global-setup'),
};
export default config;"><pre class="notranslate"><code class="notranslate">import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
  timeout: 30000,
  globalTimeout: 600000,
  workers: 2,
  projects: [
    {
      name: "chrome",

      use: {
        headless: false,
        baseURL: 'http://dev.getmyboat.com/',
        channel: 'chrome',
        viewport: { width: 1280, height: 720 },
        ignoreHTTPSErrors: false,
        video: 'on-first-retry',
        screenshot: 'only-on-failure'
      }
    }
  ],

  reporter: [["dot"], ["json", { outputFile: "test-result.json" }],
  ['experimental-allure-playwright']],
  // globalSetup: require.resolve('./global-setup'),
};
export default config;
</code></pre></div>
<p dir="auto">test</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { test, Browser, BrowserContext } from &quot;@playwright/test&quot;
import registerPage from '../Pages/registerPage';
import {getOwnerToken, getRenterToken} from &quot;../../utils/authUtils&quot;
declare const browser: Browser

test.describe(&quot;Register New User&quot;, async () =&gt; {
    let context: BrowserContext;
    test(&quot;@smoke1 C613 Validate user is able to Register/Create account&quot;, async ({ browser }) =&gt; {

        context = await browser.newContext({
            storageState: &quot;cookies/banner.json&quot;
        });
        const page = await context.newPage();
        await page.goto('/s/auth/register');
        const regPage = new registerPage(page);
        await regPage.registerUser()
        await regPage.clickCreateAccount()
        await regPage.clickAccept()
        await page.waitForNavigation({
            url: 'http://dev.getmyboat.com/'
        })

    });
    

    test.afterAll(async ({ browser }) =&gt; {
        await browser.close();
    })
    test.afterEach(async ({ context }) =&gt; {
        await context.close();
    })

});"><pre class="notranslate"><code class="notranslate">import { test, Browser, BrowserContext } from "@playwright/test"
import registerPage from '../Pages/registerPage';
import {getOwnerToken, getRenterToken} from "../../utils/authUtils"
declare const browser: Browser

test.describe("Register New User", async () =&gt; {
    let context: BrowserContext;
    test("@smoke1 C613 Validate user is able to Register/Create account", async ({ browser }) =&gt; {

        context = await browser.newContext({
            storageState: "cookies/banner.json"
        });
        const page = await context.newPage();
        await page.goto('/s/auth/register');
        const regPage = new registerPage(page);
        await regPage.registerUser()
        await regPage.clickCreateAccount()
        await regPage.clickAccept()
        await page.waitForNavigation({
            url: 'http://dev.getmyboat.com/'
        })

    });
    

    test.afterAll(async ({ browser }) =&gt; {
        await browser.close();
    })
    test.afterEach(async ({ context }) =&gt; {
        await context.close();
    })

});
</code></pre></div>
<p dir="auto">results</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    page.goto: Protocol error (Page.navigate): Cannot navigate to invalid URL
    =========================== logs ===========================
    navigating to &quot;/s/auth/register&quot;, waiting until &quot;load&quot;
    ============================================================

      12 |         });
      13 |         const page = await context.newPage();
    &gt; 14 |         await page.goto('/s/auth/register');
         |                    ^
      15 |         const regPage = new registerPage(page);
      16 |         await regPage.registerUser()
      17 |         await regPage.clickCreateAccount()"><pre class="notranslate"><code class="notranslate">    page.goto: Protocol error (Page.navigate): Cannot navigate to invalid URL
    =========================== logs ===========================
    navigating to "/s/auth/register", waiting until "load"
    ============================================================

      12 |         });
      13 |         const page = await context.newPage();
    &gt; 14 |         await page.goto('/s/auth/register');
         |                    ^
      15 |         const regPage = new registerPage(page);
      16 |         await regPage.registerUser()
      17 |         await regPage.clickCreateAccount()
</code></pre></div>
<h3 dir="auto">Playwright version</h3>
<p dir="auto">1.13.0</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">What browsers are you seeing the problem on?</h3>
<p dir="auto">Chromium</p>
<h3 dir="auto">Other information</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">What happened? / Describe the bug</h3>
<p dir="auto">Trying to get baseURL set up in the playwright config file but it just doesn't seem to find it.<br>
I've just updated to 1.13.0. Here's some snapshots.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68374567/126774874-fcdcee31-94b3-4430-9ba8-7ef64fcc30df.PNG"><img src="https://user-images.githubusercontent.com/68374567/126774874-fcdcee31-94b3-4430-9ba8-7ef64fcc30df.PNG" alt="error message" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68374567/126774875-0490cd52-8d0d-470a-8e2f-e1fe6b2bc86f.PNG"><img src="https://user-images.githubusercontent.com/68374567/126774875-0490cd52-8d0d-470a-8e2f-e1fe6b2bc86f.PNG" alt="help 2" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68374567/126774876-6c9fd4cf-ff37-4251-87ad-2521c982c121.PNG"><img src="https://user-images.githubusercontent.com/68374567/126774876-6c9fd4cf-ff37-4251-87ad-2521c982c121.PNG" alt="help 3" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/68374567/126774877-3696b1a7-612e-4a1e-838c-51c01cb0945b.PNG"><img src="https://user-images.githubusercontent.com/68374567/126774877-3696b1a7-612e-4a1e-838c-51c01cb0945b.PNG" alt="help" style="max-width: 100%;"></a></p>
<p dir="auto">Am I doing something wrong here?</p>
<h3 dir="auto">Code snippet to reproduce your bug</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Relevant log output</h3>
<p dir="auto"><em>No response</em></p>