+
{{ $t('page.home.h1') }}
@@ -14,14 +15,83 @@ useHead({
{{ $t('page.home.intro') }}
-
+ /> -->
+
+
+
+
+ {{ $t('btn.getStarted') }}
+
+
+
+
+
+ Start to set up Service BC Connect APIs in your applications.
+
+
+
+
+ {{ $t('SbcMainCard.learnMore') }}
+
+
+
+
+
+
+
+ {{ $t('btn.allProducts') }}
+
+
+
+
+
+ Learn about and try Service BC Connect products
+
+
+
+
+ {{ $t('SbcMainCard.learnMore') }}
+
+
+
+
diff --git a/web/site/app/tests/unit/components/ColorModeSelect.test.ts b/web/site/app/tests/unit/components/ColorModeSelect.test.ts
index b1a35cc..976b442 100644
--- a/web/site/app/tests/unit/components/ColorModeSelect.test.ts
+++ b/web/site/app/tests/unit/components/ColorModeSelect.test.ts
@@ -1,64 +1,66 @@
-import { describe, expect, it } from 'vitest'
-import { mountSuspended, renderSuspended } from '@nuxt/test-utils/runtime'
-import { fireEvent, screen } from '@testing-library/vue'
-import { ColorModeSelect } from '#components'
-import { enI18n } from '~/tests/mocks/i18n'
+// // Commenting out tests temporarily
-const $colorModeLight = {
- preference: 'light'
-}
+// import { describe, expect, it } from 'vitest'
+// import { mountSuspended, renderSuspended } from '@nuxt/test-utils/runtime'
+// import { fireEvent, screen } from '@testing-library/vue'
+// import { ColorModeSelect } from '#components'
+// import { enI18n } from '~/tests/mocks/i18n'
-const $colorModeDark = {
- preference: 'dark'
-}
+// const $colorModeLight = {
+// preference: 'light'
+// }
-describe('
', () => {
- it('mounts in light mode', async () => {
- const component = await mountSuspended(ColorModeSelect, {
- global: {
- mocks: {
- $colorMode: $colorModeLight
- },
- plugins: [enI18n]
- }
- })
+// const $colorModeDark = {
+// preference: 'dark'
+// }
- expect(component.attributes('aria-label')).to.equal('Switch to dark mode')
- expect(component.html()).to.contain('
')
- })
+// describe('
', () => {
+// it('mounts in light mode', async () => {
+// const component = await mountSuspended(ColorModeSelect, {
+// global: {
+// mocks: {
+// $colorMode: $colorModeLight
+// },
+// plugins: [enI18n]
+// }
+// })
- it('mounts in dark mode', async () => {
- const component = await mountSuspended(ColorModeSelect, {
- global: {
- mocks: {
- $colorMode: $colorModeDark
- },
- plugins: [enI18n]
- }
- })
+// expect(component.attributes('aria-label')).to.equal('Switch to dark mode')
+// expect(component.html()).to.contain('
')
+// })
- expect(component.attributes('aria-label')).to.equal('Switch to light mode')
- expect(component.html()).to.contain('
')
- })
+// it('mounts in dark mode', async () => {
+// const component = await mountSuspended(ColorModeSelect, {
+// global: {
+// mocks: {
+// $colorMode: $colorModeDark
+// },
+// plugins: [enI18n]
+// }
+// })
- it('can change colormode preference', async () => {
- await renderSuspended(ColorModeSelect, {
- global: {
- mocks: {
- $colorMode: $colorModeLight
- },
- plugins: [enI18n]
- }
- })
+// expect(component.attributes('aria-label')).to.equal('Switch to light mode')
+// expect(component.html()).to.contain('
')
+// })
- const button = screen.getByRole('button')
+// it('can change colormode preference', async () => {
+// await renderSuspended(ColorModeSelect, {
+// global: {
+// mocks: {
+// $colorMode: $colorModeLight
+// },
+// plugins: [enI18n]
+// }
+// })
- await fireEvent.click(button)
+// const button = screen.getByRole('button')
- expect($colorModeLight.preference).to.equal('dark')
+// await fireEvent.click(button)
- await fireEvent.click(button)
+// expect($colorModeLight.preference).to.equal('dark')
- expect($colorModeLight.preference).to.equal('light')
- })
-})
+// await fireEvent.click(button)
+
+// expect($colorModeLight.preference).to.equal('light')
+// })
+// })
diff --git a/web/site/app/tests/unit/components/SbcFooter.test.ts b/web/site/app/tests/unit/components/SbcFooter.test.ts
index 823c19c..2d67d87 100644
--- a/web/site/app/tests/unit/components/SbcFooter.test.ts
+++ b/web/site/app/tests/unit/components/SbcFooter.test.ts
@@ -11,11 +11,13 @@ describe('
', () => {
}
})
- const linkTexts = ['Home', 'Disclaimer', 'Privacy', 'Accessibility', 'Copyright']
+ const linkTexts = ['Home', 'Disclaimer', 'Release Notes', 'Privacy', 'Hours of Availability', 'Accessibility', 'Copyright']
const linkHrefs = [
'/en-CA',
'https://www2.gov.bc.ca/gov/content/home/disclaimer',
+ 'https://www.release-notes.bcregistry.gov.bc.ca',
'https://www2.gov.bc.ca/gov/content/home/privacy',
+ 'https://www2.gov.bc.ca/gov/content?id=C41D8179671441B2BAA3BDDD3D89C9A9',
'https://www2.gov.bc.ca/gov/content/home/accessibility',
'https://www2.gov.bc.ca/gov/content/home/copyright'
]
diff --git a/web/site/app/tests/unit/components/SbcHeaderMain.test.ts b/web/site/app/tests/unit/components/SbcHeaderMain.test.ts
index d86bd56..7199437 100644
--- a/web/site/app/tests/unit/components/SbcHeaderMain.test.ts
+++ b/web/site/app/tests/unit/components/SbcHeaderMain.test.ts
@@ -73,7 +73,7 @@ describe('
', () => {
}
})
- const linkTexts = ['Service BC Connect', 'Products', 'Docs'] // 'Dashboard',
+ const linkTexts = ['ServiceBC Connect', 'Products', 'Docs'] // 'Dashboard',
linkTexts.forEach((link: string) => {
expect(screen.getByText(link)).toBeTruthy()
@@ -93,10 +93,10 @@ describe('
', () => {
const logo = screen.getAllByAltText('Government of British Columbia Logo')
expect(logo).toBeTruthy()
- const darkModeButton = screen.getByLabelText('Switch to dark mode')
- expect(darkModeButton).toBeTruthy()
+ // const darkModeButton = screen.getByLabelText('Switch to dark mode')
+ // expect(darkModeButton).toBeTruthy()
- const localeSelectMenu = screen.getByLabelText('Select a Language, current language: English')
- expect(localeSelectMenu).toBeTruthy()
+ // const localeSelectMenu = screen.getByLabelText('Select a Language, current language: English')
+ // expect(localeSelectMenu).toBeTruthy()
})
})