From de88626239b2366189a17cb5c60e8ff1f52e7b4f Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Sat, 20 Jul 2024 16:36:16 +0800 Subject: [PATCH] Switched to baseURL --- playwright.config.ts | 2 +- test-playwright/check-activity-feed.spec.ts | 2 +- test-playwright/create-project.spec.ts | 4 ++-- test-playwright/create-user-00.spec.ts | 2 +- test-playwright/create-user-01.spec.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index b535a12d2..b62e684e5 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -25,7 +25,7 @@ export default defineConfig({ /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ use: { /* Base URL to use in actions like `await page.goto('/')`. */ - // baseURL: 'http://127.0.0.1:3000', + baseURL: 'https://test.timesafari.app', /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: 'on-first-retry', diff --git a/test-playwright/check-activity-feed.spec.ts b/test-playwright/check-activity-feed.spec.ts index be54f3395..0d5fd4372 100644 --- a/test-playwright/check-activity-feed.spec.ts +++ b/test-playwright/check-activity-feed.spec.ts @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test'; test('test', async ({ page }) => { // Load app homepage - await page.goto('https://test.timesafari.app/'); + await page.goto('./'); // Check that initial 10 activities have been loaded await page.locator('li:nth-child(10)'); diff --git a/test-playwright/create-project.spec.ts b/test-playwright/create-project.spec.ts index cb138df2b..a9cf2c998 100644 --- a/test-playwright/create-project.spec.ts +++ b/test-playwright/create-project.spec.ts @@ -19,7 +19,7 @@ test('test', async ({ page }) => { const finalDescription = standardDescription + finalRandomString; // Create new ID using seed phrase "rigid shrug mobile…" - await page.goto('https://test.timesafari.app/start'); + await page.goto('./start'); await page.getByText('You have a seed').click(); await page.getByPlaceholder('Seed Phrase').click(); await page.getByPlaceholder('Seed Phrase').fill('rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage'); @@ -38,7 +38,7 @@ test('test', async ({ page }) => { await page.waitForTimeout(5000); // I have to wait, otherwise the (+) button to add a new project doesn't appear // Create new project - await page.locator('#QuickNav').getByRole('link').nth(2).click(); + await page.goto('./projects'); await page.getByRole('link', { name: 'Projects', exact: true }).click(); await page.getByRole('button').click(); await page.getByPlaceholder('Idea Name').click(); diff --git a/test-playwright/create-user-00.spec.ts b/test-playwright/create-user-00.spec.ts index 516a5c353..2c5d6b351 100644 --- a/test-playwright/create-user-00.spec.ts +++ b/test-playwright/create-user-00.spec.ts @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test'; test('Create new ID from seed', async ({ page }) => { // Create new ID using seed phrase "rigid shrug mobile…" - await page.goto('https://test.timesafari.app/start'); + await page.goto('./start'); await page.getByText('You have a seed').click(); await page.getByPlaceholder('Seed Phrase').click(); await page.getByPlaceholder('Seed Phrase').fill('rigid shrug mobile smart veteran half all pond toilet brave review universe ship congress found yard skate elite apology jar uniform subway slender luggage'); diff --git a/test-playwright/create-user-01.spec.ts b/test-playwright/create-user-01.spec.ts index 4caeb77b5..e343affc9 100644 --- a/test-playwright/create-user-01.spec.ts +++ b/test-playwright/create-user-01.spec.ts @@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test'; test('Validate copy contact info to clipboard', async ({ page }) => { // Create new ID using seed phrase "island fever beef…" - await page.goto('https://test.timesafari.app/start'); + await page.goto('./start'); await page.getByText('You have a seed').click(); await page.getByPlaceholder('Seed Phrase').click(); await page.getByPlaceholder('Seed Phrase').fill('island fever beef wine urban aim vacant quit afford total poem flame service calm better adult neither color gaze forum month sister imitate excite');