Skip to content

Commit c04f6a4

Browse files
committed
- missed 2 spots for the BackHomeButton
- webkit and firefox passing now for some reason - add clicking the 'Home' button to the playwright navigation test
1 parent 7225b07 commit c04f6a4

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

playwright.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ export default defineConfig({
4040
},
4141

4242
// currently failing:
43-
// {
44-
// name: 'firefox',
45-
// use: { ...devices['Desktop Firefox'] },
46-
// },
47-
//
48-
// {
49-
// name: 'webkit',
50-
// use: { ...devices['Desktop Safari'] },
51-
// },
43+
{
44+
name: 'firefox',
45+
use: { ...devices['Desktop Firefox'] },
46+
},
47+
48+
{
49+
name: 'webkit',
50+
use: { ...devices['Desktop Safari'] },
51+
},
5252

5353
/* Test against mobile viewports. */
5454
{

src/components/EmailProviderRequest.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { createMailto } from '$lib/utils';
3+
import BackHomeButton from '$components/BackHomeButton.svelte';
34
45
let mailTo: string = createMailto('hello@frequency.xyz', 'Request to become a Frequency provider', '');
56
@@ -15,6 +16,6 @@
1516
</p>
1617
<form class="flex w-[350px] items-end justify-between">
1718
<button id="email-request-btn" on:click|preventDefault={composeEmail} class="btn-primary">Email Request</button>
18-
<a href="/" class="btn-no-fill">Cancel</a>
19+
<BackHomeButton />
1920
</form>
2021
</div>

src/components/RequestToBeProvider.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import { user } from '$lib/stores/userStore';
99
import { activityLog } from '$lib/stores/activityLogStore';
1010
import ActivityLogPreviewItem from './ActivityLogPreviewItem.svelte';
11+
import BackHomeButton from '$components/BackHomeButton.svelte';
1112
1213
let isInProgress = false;
1314
let recentActivityItem: Activity;
@@ -63,7 +64,7 @@
6364
<button on:click|preventDefault={doProposeToBeProvider} id="request-2b-provider-btn" class="btn-primary">
6465
Submit Request To Be Provider</button
6566
>
66-
<a href="/" class="btn-cancel">Cancel</a>
67+
<BackHomeButton />
6768
</div>
6869
</form>
6970
</div>

test/playwright/navigation.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ test('Navigation from home page', async ({ page }) => {
1717
await page.getByText(/FAQ/).click();
1818
await page.waitForURL('**/faq');
1919
expect(page.getByText(/What is the difference between Mainnet and Testnets\?/)).toBeVisible();
20+
21+
// Click the Home button
22+
await page.getByText(/Home/).click();
23+
await page.waitForURL('**/');
24+
await expect(page.getByText('Provider Login')).toBeVisible();
2025
});

0 commit comments

Comments
 (0)