Switched to baseURL
This commit is contained in:
@@ -25,7 +25,7 @@ export default defineConfig({
|
|||||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||||
use: {
|
use: {
|
||||||
/* Base URL to use in actions like `await page.goto('/')`. */
|
/* 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 */
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';
|
|||||||
|
|
||||||
test('test', async ({ page }) => {
|
test('test', async ({ page }) => {
|
||||||
// Load app homepage
|
// Load app homepage
|
||||||
await page.goto('https://test.timesafari.app/');
|
await page.goto('./');
|
||||||
|
|
||||||
// Check that initial 10 activities have been loaded
|
// Check that initial 10 activities have been loaded
|
||||||
await page.locator('li:nth-child(10)');
|
await page.locator('li:nth-child(10)');
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ test('test', async ({ page }) => {
|
|||||||
const finalDescription = standardDescription + finalRandomString;
|
const finalDescription = standardDescription + finalRandomString;
|
||||||
|
|
||||||
// Create new ID using seed phrase "rigid shrug mobile…"
|
// 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.getByText('You have a seed').click();
|
||||||
await page.getByPlaceholder('Seed Phrase').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');
|
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
|
await page.waitForTimeout(5000); // I have to wait, otherwise the (+) button to add a new project doesn't appear
|
||||||
|
|
||||||
// Create new project
|
// 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('link', { name: 'Projects', exact: true }).click();
|
||||||
await page.getByRole('button').click();
|
await page.getByRole('button').click();
|
||||||
await page.getByPlaceholder('Idea Name').click();
|
await page.getByPlaceholder('Idea Name').click();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { test, expect } from '@playwright/test';
|
|||||||
|
|
||||||
test('Create new ID from seed', async ({ page }) => {
|
test('Create new ID from seed', async ({ page }) => {
|
||||||
// Create new ID using seed phrase "rigid shrug mobile…"
|
// 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.getByText('You have a seed').click();
|
||||||
await page.getByPlaceholder('Seed Phrase').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');
|
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,7 +2,7 @@ import { test, expect } from '@playwright/test';
|
|||||||
|
|
||||||
test('Validate copy contact info to clipboard', async ({ page }) => {
|
test('Validate copy contact info to clipboard', async ({ page }) => {
|
||||||
// Create new ID using seed phrase "island fever beef…"
|
// 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.getByText('You have a seed').click();
|
||||||
await page.getByPlaceholder('Seed Phrase').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');
|
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');
|
||||||
|
|||||||
Reference in New Issue
Block a user