Skip to content

Commit

Permalink
chore: use baseURL [sc-0] (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
umutuzgur authored Oct 11, 2024
1 parent 2ae8856 commit ef34ada
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/advanced-project-js/src/__checks__/homepage.spec.js
Original file line number Diff line number Diff line change
@@ -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/);
Expand Down
4 changes: 2 additions & 2 deletions examples/advanced-project-js/src/__checks__/login.spec.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 2 additions & 2 deletions examples/advanced-project/src/__checks__/homepage.spec.ts
Original file line number Diff line number Diff line change
@@ -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/)
Expand Down
4 changes: 2 additions & 2 deletions examples/advanced-project/src/__checks__/login.spec.ts
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit ef34ada

Please sign in to comment.