Switched to baseURL

This commit is contained in:
Jose Olarte III
2024-07-20 16:36:16 +08:00
parent 72472e9d5e
commit cd3cbda801
5 changed files with 6 additions and 6 deletions

View File

@@ -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',

View File

@@ -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)');

View File

@@ -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();

View File

@@ -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');

View File

@@ -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');