Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some shares #41

Merged
merged 14 commits into from
Jan 14, 2025
18 changes: 13 additions & 5 deletions e2e/stats.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,19 @@ test('shows all time stats', async ({page}) => {
await page.getByTestId('veggie-search-challenge').locator('.veggie-search__option').click();
await page.goto('stats');
await page.getByTestId('stats-tab-2').click();
await expect(page.getByTestId('all-time-weeks')).toHaveText('In Total 1 Weeks');
await expect(page.getByTestId('all-time-over-30')).toHaveText('Over 30 Veggies in 0 Weeks');
await expect(page.getByTestId('all-time-unique')).toHaveText('In Total 2 Unique Veggies');
await expect(page.getByTestId('all-time-at-most')).toHaveText('At Most 2 Veggies in a Week');
await expect(page.getByTestId('all-time-challenges')).toHaveText('Completed 1 Weekly Challenges');
await expect(page.getByTestId('all-time-status-totalWeeks')).toHaveText('In Total 1 Weeks');
await expect(page.getByTestId('all-time-status-over30Veggies')).toHaveText(
'Over 30 Veggies in 0 Weeks',
);
await expect(page.getByTestId('all-time-status-uniqueVeggies')).toHaveText(
'In Total 2 Unique Veggies',
);
await expect(page.getByTestId('all-time-status-atMostVeggies')).toHaveText(
'At Most 2 Veggies in a Week',
);
await expect(page.getByTestId('all-time-status-completedChallenges')).toHaveText(
'Completed 1 Weekly Challenges',
);
});

test('shows veggie list', async ({page}) => {
Expand Down
15 changes: 15 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,27 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/pwa-192.png" />
<link rel="canonical" href="https://eatyourveggies.app" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#0ea5e9" />
<meta
name="description"
content="Embrace a healthier lifestyle by eating at least 30 veggies each week."
/>
<meta property="og:title" content="Eat Your Veggies" />
<meta
property="og:description"
content="Embrace a healthier lifestyle by eating at least 30 veggies each week."
/>
<meta property="og:url" content="https://eatyourveggies.app" />
<meta property="og:image" content="https://eatyourveggies.app/og-banner.png" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Eat Your Veggies" />
<meta
name="twitter:description"
content="Embrace a healthier lifestyle by eating at least 30 veggies each week."
/>
<meta name="twitter:image" content="https://eatyourveggies.app/og-banner.png" />
<title>Eat Your Veggies</title>
</head>
<body>
Expand Down
Loading
Loading