generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a79a5f9
commit ff8414e
Showing
48 changed files
with
1,119 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Page } from 'playwright' | ||
import { expect } from '@playwright/test' | ||
|
||
import { baseURL } from '../utils' | ||
|
||
export const contact_page = async (page: Page) => { | ||
await page.goto(baseURL) | ||
const contactUsLink = page.getByRole('link', { name: 'Contact Us' }) | ||
await contactUsLink.click() | ||
|
||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Contact Us', | ||
}), | ||
).toBeVisible() | ||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Organic matter', | ||
}), | ||
).toBeVisible() | ||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Authorizations', | ||
}), | ||
).toBeVisible() | ||
|
||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Report natural resource violations', | ||
}), | ||
).toBeVisible() | ||
|
||
await expect( | ||
page.getByRole('link', { | ||
name: '[email protected]', | ||
}), | ||
).toBeVisible() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Page } from 'playwright' | ||
import { expect } from '@playwright/test' | ||
|
||
import { baseURL } from '../utils' | ||
|
||
export const guidance_page = async (page: Page) => { | ||
await page.goto(baseURL) | ||
const guidanceLink = page.getByRole('link', { name: 'Guidance' }) | ||
await guidanceLink.click() | ||
|
||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Guidance', | ||
}), | ||
).toBeVisible() | ||
await expect( | ||
page.getByRole('heading', { | ||
name: 'How to interpret', | ||
}), | ||
).toBeVisible() | ||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Map layers', | ||
}), | ||
).toBeVisible() | ||
|
||
await expect( | ||
page.getByRole('link', { | ||
name: 'Aquifers - All', | ||
}), | ||
).toBeVisible() | ||
|
||
await expect( | ||
page.getByRole('heading', { | ||
name: 'Other sources of information', | ||
}), | ||
).toBeVisible() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
footer.footer { | ||
display: flex; | ||
color: #ffffff; | ||
background-color: var(--surface-color-primary-default); | ||
padding: 24px; | ||
} | ||
|
||
div.footer-toolbar { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
flex-wrap: wrap; | ||
gap: var(--layout-margin-small); | ||
align-self: stretch; | ||
} | ||
|
||
.footer a { | ||
color: #FFF; | ||
font-size: 14px; | ||
line-height: 21px; | ||
text-decoration: none; | ||
} | ||
|
||
.footer a:hover { | ||
text-decoration: underline; | ||
} | ||
|
||
.footer-divider { | ||
height: 1em; | ||
border-color: #ffffff; | ||
align-self: center; | ||
margin: 0 4px; | ||
} | ||
|
||
button.footer-scroll-button { | ||
position: fixed; | ||
width: 40px; | ||
height: 40px; | ||
min-width: 40px; | ||
bottom: 12px; | ||
padding: 0; | ||
background-color: var(--surface-color-brand-gold-60); | ||
color: var(--icons-color-primary); | ||
z-index: 9; | ||
} | ||
|
||
button.footer-scroll-button:hover { | ||
background-color: var(--surface-color-brand-gold-50); | ||
color: black; | ||
} | ||
|
||
button.footer-scroll-button--shift-up { | ||
bottom: 88px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react' | ||
import { screen } from '@testing-library/react' | ||
|
||
import { render } from '@/test-utils' | ||
import { themeBreakpointValues } from '@/theme' | ||
import Footer from './Footer' | ||
|
||
describe('Test suite for Footer', () => { | ||
it('should render Footer on large page', () => { | ||
render(<Footer />, { | ||
screenWidth: themeBreakpointValues.xxl, | ||
withRouter: true, | ||
route: '/map', | ||
}) | ||
|
||
const links = screen.getAllByRole('link') | ||
expect(links).toHaveLength(5) | ||
}) | ||
|
||
it('should render Footer on small page with map view showing', () => { | ||
render(<Footer />, { | ||
screenWidth: themeBreakpointValues.sm - 10, | ||
withRouter: true, | ||
route: '/map', | ||
}) | ||
|
||
expect(screen.queryByRole('footer')).not.toBeInTheDocument() | ||
}) | ||
}) |
Oops, something went wrong.