Skip to content

Commit

Permalink
chore: multiple quick wins (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Dec 4, 2024
1 parent 19998bc commit 7d64442
Show file tree
Hide file tree
Showing 9 changed files with 206 additions and 177 deletions.
8 changes: 5 additions & 3 deletions frontend/e2e/pages/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ export const dashboard_page = async (page: Page) => {
await expect(page.getByAltText('Information image')).toBeVisible()

await expect(page.getByText('Learn more')).toBeVisible()
await expect(page.getByRole('link', { name: 'Legislation' })).toBeVisible()
await expect(
page.getByRole('link', { name: 'Process and procedures' }),
page.getByRole('link', { name: 'Legislation', exact: true }),
).toBeVisible()
await expect(
page.getByRole('link', { name: 'Compliance and enforcement' }),
page.getByRole('link', { name: 'Process and procedures', exact: true }),
).toBeVisible()
await expect(
page.getByRole('link', { name: 'Compliance and enforcement', exact: true }),
).toBeVisible()
}
2 changes: 1 addition & 1 deletion frontend/e2e/pages/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const map_page = async (page: Page) => {
await autocompleteOption.click()

// Search input
await expect(searchInput).toHaveValue('CITY OF VICTORIA')
await expect(searchInput).toHaveValue('City Of Victoria')

// Search results should be expanded
await expect(page.getByText('Search Results')).toBeVisible()
Expand Down
Binary file modified frontend/src/assets/homepage-info.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions frontend/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,19 @@ export default function Header() {
alt="Logo"
/>
</Link>
<Typography data-testid="header-title" sx={styles.titleText}>
Organics Info
</Typography>
<Link
style={{
display: 'inline-flex',
textDecoration: 'none',
color: 'inherit',
cursor: 'pointer',
}}
onClick={() => buttonClicked('/')}
>
<Typography data-testid="header-title" sx={styles.titleText}>
Organics Info
</Typography>
</Link>
</Stack>
<Stack direction="row" id="nav">
{mdMatches && (
Expand Down
Loading

0 comments on commit 7d64442

Please sign in to comment.