diff --git a/e2e/activity.spec.ts b/e2e/activity.spec.ts index 0e170e8e..ffca1b78 100644 --- a/e2e/activity.spec.ts +++ b/e2e/activity.spec.ts @@ -646,6 +646,15 @@ test('the active connections tile opens the connection list', async ({page}) => await expect(page.getByRole('tab', {name: 'Connections', exact: true})).toHaveAttribute('aria-selected', 'true'); }); +test('the download and upload tiles open the connections traffic', async ({page}) => { + for (const name of ['Download', 'Upload']) { + await page.goto('/#/activity'); + await page.getByRole('link', {name, exact: true}).click(); + await expect(page).toHaveURL(/#\/connections\?tab=traffic$/); + await expect(page.getByRole('tab', {name: 'Traffic', exact: true})).toHaveAttribute('aria-selected', 'true'); + } +}); + test('the rankings, outbound usage and latency tile open the connections and node they name', async ({page}) => { await page.setViewportSize({width: 1440, height: 900}); await page.goto('/#/activity'); diff --git a/src/features/activity/Activity.tsx b/src/features/activity/Activity.tsx index da7c3ba4..64ccd40d 100644 --- a/src/features/activity/Activity.tsx +++ b/src/features/activity/Activity.tsx @@ -41,8 +41,9 @@ export function Activity() { + {/* Each tile opens what it measures: the rates open the connections' traffic, the count opens their list. */}