diff --git a/playwright.config.ts b/playwright.config.ts index e24bed0..45eb6f1 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -39,7 +39,7 @@ const config: PlaywrightTestConfig = { /* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */ actionTimeout: 0, /* Base URL to use in actions like `await page.goto('/')`. */ - baseURL: 'https://practice.automationbro.com', + baseURL: 'https://practice.sdetunicorns.com', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'retain-on-failure', diff --git a/tests/home.spec.ts b/tests/home.spec.ts index 73b2fc0..da6832c 100644 --- a/tests/home.spec.ts +++ b/tests/home.spec.ts @@ -11,12 +11,12 @@ test.describe('Home', () => { test('Open HomePage and verify title', async ({ page }) => { // verify title - await expect(page).toHaveTitle('Practice E-Commerce Site – Automation Bro'); + await expect(page).toHaveTitle('Practice E-Commerce Site – SDET Unicorns'); }) test.skip('Open About page and verify title', async ({ page }) => { // open url - await page.goto('https://practice.automationbro.com/about'); + await page.goto('https://practice.sdetunicorns.com/about'); // verify title await expect(page).toHaveTitle('About – Practice E-Commerce Site'); diff --git a/tests/upload.spec.ts b/tests/upload.spec.ts index af3b490..1e58865 100644 --- a/tests/upload.spec.ts +++ b/tests/upload.spec.ts @@ -13,7 +13,7 @@ test.describe('Upload File', () => { cartPage = new CartPage(page); // Open url - await page.goto("https://practice.automationbro.com/cart/"); + await page.goto("https://practice.sdetunicorns.com/cart/"); // provide test file path const filePath = path.join(__dirname, `../data/${name}`); @@ -31,7 +31,7 @@ test.describe('Upload File', () => { test.skip('should upload a test file on a hidden input field', async ({ page }) => { // Open url - await page.goto("https://practice.automationbro.com/cart/"); + await page.goto("https://practice.sdetunicorns.com/cart/"); // provide test file path const filePath = path.join(__dirname, '../data/logotitle.png'); diff --git a/utils/global-setup.ts b/utils/global-setup.ts index 28a75fe..71b1f4b 100644 --- a/utils/global-setup.ts +++ b/utils/global-setup.ts @@ -4,7 +4,7 @@ async function globalSetup(config: FullConfig) { const browser = await chromium.launch(); const page = await browser.newPage() - await page.goto('https://practice.automationbro.com/my-account') + await page.goto('https://practice.sdetunicorns.com/my-account') await page.context().storageState({ path: 'notLoggedInState.json' }); // login