Skip to content

Commit

Permalink
Updated urls to sdetunicorns
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilpreet authored and Dilpreet committed Jan 30, 2024
1 parent 758a072 commit 0f20597
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions tests/home.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions tests/upload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion utils/global-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f20597

Please sign in to comment.