Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
alpha version tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Nov 14, 2023
1 parent bd8261c commit 8756ac5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Unreleased
- Search monitors and geostories by title [OEMC-94](https://vizzuality.atlassian.net/browse/OEMC-94?atlOrigin=eyJpIjoiMGVlYmJhNmM5ODU4NDRiNWEzNTIyNWRjODdjNDg4MWUiLCJwIjoiaiJ9)
- 404 - error management [OEMC-81](https://vizzuality.atlassian.net/browse/OEMC-81?atlOrigin=eyJpIjoiNWZkNTYwMjVkZGVjNDAwZGE2YWI3ZDgwMzgzOTRjMjEiLCJwIjoiaiJ9)
- Sorting items in landing page [OEMC-24](https://vizzuality.atlassian.net/browse/OEMC-24?atlOrigin=eyJpIjoiZTlmNGE1Njk3MTRlNDNjMmExY2I3YmE1ZjUzMTBkYjIiLCJwIjoiaiJ9)
- Alpha version tag added to site [OEMC-127](https://vizzuality.atlassian.net/browse/OEMC-127?atlOrigin=eyJpIjoiYzBiNGI0NDcwOGUzNGYzMzgzM2I1NWVhMWE0NjFkZjciLCJwIjoiaiJ9)

### Changed

Expand Down
16 changes: 16 additions & 0 deletions e2e/global.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { test, expect } from '@playwright/test';

test.describe('"Alpha version" should be visible from every page ', () => {
test('Alpha version in hub', async ({ page }) => {
await page.goto('/', { waitUntil: 'load' });
const alphaVersion = page.getByTestId('alpha-site');
await expect(alphaVersion).toBeVisible();
await expect(alphaVersion).toHaveText('Alpha version');
});
test('Alpha version in map', async ({ page }) => {
await page.goto('/map', { waitUntil: 'load' });
const alphaVersion = page.getByTestId('alpha-site');
await expect(alphaVersion).toBeVisible();
await expect(alphaVersion).toHaveText('Alpha version');
});
});
10 changes: 8 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,22 @@ export default function RootLayout({ children }: { children: ReactNode }) {
<div className="flex h-full flex-col">
<div className="h-[70px] w-full items-center border-b border-b-secondary-900 bg-brand-500/80">
<div className="m-auto flex h-full max-w-[1200px] items-center justify-between">
<div className="mx-2 items-center space-x-4">
<div className="mx-2 flex items-center space-x-4">
<Link href="/">
<Image
alt="Open-earth-monitor"
src="/images/OEM-logo.svg"
width={147}
height={40}
className="inline-block"
className="block"
/>
</Link>
<div
data-testid="alpha-site"
className="rounded-sm border border-alert px-[6px] py-1 font-inter text-xs text-alert"
>
Alpha version
</div>
</div>
<MainMenu />
</div>
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module.exports = {

foreground: 'hsl(var(--secondary-foreground))',
},
alert: 'hsl(167, 85%, 52%)',
monitors: {
blue: 'hsla(209, 94%, 87%, 1)',
green: 'hsla(133, 97%, 85%, 1)',
Expand Down

0 comments on commit 8756ac5

Please sign in to comment.