Browse Source

Switched to baseURL

Jose Olarte III 4 months ago
parent
commit
de88626239
  1. 2
      playwright.config.ts
  2. 2
      test-playwright/check-activity-feed.spec.ts
  3. 4
      test-playwright/create-project.spec.ts
  4. 2
      test-playwright/create-user-00.spec.ts
  5. 2
      test-playwright/create-user-01.spec.ts

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

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

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

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

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

Loading…
Cancel
Save