diff --git a/components/Nav.tsx b/components/Nav.tsx index 7b0098b..9e3d4ab 100644 --- a/components/Nav.tsx +++ b/components/Nav.tsx @@ -24,11 +24,15 @@ const Nav = ({ user, signOut }: NavProps): JSX.Element => { )} - Pricing + + Pricing + - Contact Us + + Contact Us + {user ? ( @@ -39,10 +43,14 @@ const Nav = ({ user, signOut }: NavProps): JSX.Element => { ) : ( <> - Login + + Login + - Sign Up + + Sign Up + )} diff --git a/tests/basic.spec.ts b/tests/basic.spec.ts index b159302..f3d1c46 100644 --- a/tests/basic.spec.ts +++ b/tests/basic.spec.ts @@ -1,8 +1,13 @@ import { expect, test } from '@playwright/test'; test('basic test', async ({ page }) => { - console.log(process.env.PLAYWRIGHT_TEST_BASE_URL); - await page.goto('https://playwright.dev/'); - const title = page.locator('.navbar__inner .navbar__title'); - await expect(title).toHaveText('Playwright'); + const myURL: string = process.env.PLAYWRIGHT_TEST_BASE_URL + ? process.env.PLAYWRIGHT_TEST_BASE_URL + : ('http://localhost:3000/' as string); + + await page.goto(myURL); + // Go through all pages + await page.click('#login'); + await page.click('#pricing'); + await page.click('#signup'); }); diff --git a/tests/playwright.config.ts b/tests/playwright.config.ts index 6a7aefb..64ce254 100644 --- a/tests/playwright.config.ts +++ b/tests/playwright.config.ts @@ -25,17 +25,6 @@ const config: PlaywrightTestConfig = { viewport: { width: 1200, height: 750 }, }, }, - // Test against mobile viewports. - { - name: 'Desktop Firefox', - use: { - baseURL: process.env.NEXT_PUBLIC_VERCEL_URL - ? process.env.NEXT_PUBLIC_VERCEL_URL - : 'http://localhost:3000', - browserName: 'firefox', - viewport: { width: 800, height: 600 }, - }, - }, ], }; export default config;