diff --git a/examples/advanced-project-js/src/__checks__/homepage.spec.js b/examples/advanced-project-js/src/__checks__/homepage.spec.js index 5007d518..668ca71a 100644 --- a/examples/advanced-project-js/src/__checks__/homepage.spec.js +++ b/examples/advanced-project-js/src/__checks__/homepage.spec.js @@ -1,7 +1,7 @@ const { test, expect } = require('@playwright/test'); -test('webshop homepage', async ({ page, baseURL }) => { - const response = await page.goto(baseURL); +test('webshop homepage', async ({ page }) => { + const response = await page.goto(''); expect(response?.status()).toBeLessThan(400); await expect(page).toHaveTitle(/Danube WebShop/); diff --git a/examples/advanced-project-js/src/__checks__/login.spec.js b/examples/advanced-project-js/src/__checks__/login.spec.js index e682ab6c..a45fc0fc 100644 --- a/examples/advanced-project-js/src/__checks__/login.spec.js +++ b/examples/advanced-project-js/src/__checks__/login.spec.js @@ -1,8 +1,8 @@ const { test } = require('@playwright/test'); -test('login', async ({ page, baseURL }) => { +test('login', async ({ page }) => { // navigate to our target web page - await page.goto(baseURL); + await page.goto(''); // click on the login button and go through the login procedure await page.click('#login'); diff --git a/examples/advanced-project/src/__checks__/homepage.spec.ts b/examples/advanced-project/src/__checks__/homepage.spec.ts index 20fbb179..e1d8f6ce 100644 --- a/examples/advanced-project/src/__checks__/homepage.spec.ts +++ b/examples/advanced-project/src/__checks__/homepage.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test' -test('webshop homepage', async ({ page, baseURL }) => { - const response = await page.goto(baseURL) +test('webshop homepage', async ({ page }) => { + const response = await page.goto('') expect(response?.status()).toBeLessThan(400) await expect(page).toHaveTitle(/Danube WebShop/) diff --git a/examples/advanced-project/src/__checks__/login.spec.ts b/examples/advanced-project/src/__checks__/login.spec.ts index f1f942d9..0914755a 100644 --- a/examples/advanced-project/src/__checks__/login.spec.ts +++ b/examples/advanced-project/src/__checks__/login.spec.ts @@ -1,8 +1,8 @@ import { test } from '@playwright/test' -test('login', async ({ page, baseURL }) => { +test('login', async ({ page }) => { // navigate to our target web page - await page.goto(baseURL) + await page.goto('') // click on the login button and go through the login procedure await page.click('#login')