import { test, expect } from './fixtures'; test.describe('Storefront', () => { test('loads and shows the site title', async ({ storefront }) => { await storefront.goto(); await expect(storefront.header.siteTitle).toBeVisible(); }); test('links to the privacy policy from the footer', async ({ page, storefront }) => { await storefront.goto(); await storefront.privacyPolicyLink.click(); await expect(page).toHaveURL(/\/privacy/); await expect(page.getByText('What we collect')).toBeVisible(); }); test('offers login and sign up when logged out', async ({ storefront }) => { await storefront.goto(); await expect(storefront.header.logInButton).toBeVisible(); await expect(storefront.header.signUpButton).toBeVisible(); }); });