forked from bcgov/business-create-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18449 - GP/SP registration modify (bcgov#582)
* GP/SP regirstration modify * package version * fix linting * unit tests * clean up * fix linting * unit tests fix * unit tests fixing 2 * fix linting * reset back to previous one * show old UI with registries staff only * GP/SP regirstration modify * fix linting * unit tests * clean up * unit tests fix * unit tests fixing 2 * fix UI and testing * fix registries contact info messed up issue * fix lint * clean up help contact us * clean up the getter, import etc.. * revert FirmContactInfo back * remove obsolete component
- Loading branch information
1 parent
4756c21
commit dfa1a16
Showing
9 changed files
with
250 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,57 @@ | ||
<template> | ||
<ul class="contact-info pl-0"> | ||
<li class="contact-container"> | ||
<v-icon | ||
class="contact-icon" | ||
size="18px" | ||
> | ||
mdi-phone | ||
</v-icon> | ||
<span class="px-2">Canada and U.S. Toll Free:</span> | ||
<a | ||
href="tel:+1-877-370-1033" | ||
class="contact-value" | ||
>1-877-370-1033</a> | ||
</li> | ||
<li class="contact-container"> | ||
<v-icon | ||
class="contact-icon" | ||
size="18px" | ||
> | ||
mdi-phone | ||
</v-icon> | ||
<span class="px-2">Victoria Office:</span> | ||
<a | ||
href="tel:+1-250-370-1033" | ||
class="contact-value" | ||
>250-370-1033</a> | ||
</li> | ||
</ul> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Vue } from 'vue-property-decorator' | ||
@Component({}) | ||
export default class FirmContactInfo extends Vue {} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import '@/assets/styles/theme.scss'; | ||
.contact-container { | ||
font-size: $px-15; | ||
color: $gray7; | ||
display: flex; | ||
} | ||
.contact-icon { | ||
flex: 0 0 1.375rem; | ||
justify-content: flex-start; | ||
color: $app-dk-blue; | ||
} | ||
.contact-value { | ||
flex: 1 1; | ||
} | ||
</style> |
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,21 @@ | ||
import Vuetify from 'vuetify' | ||
import { mount } from '@vue/test-utils' | ||
import FirmContactInfo from '@/components/common/FirmContactInfo.vue' | ||
|
||
const vuetify = new Vuetify({}) | ||
|
||
describe('FirmContactInfo', () => { | ||
it('Displays expected content', () => { | ||
const wrapper = mount(FirmContactInfo, { vuetify }) | ||
|
||
// verify content | ||
const listItems = wrapper.findAll('.contact-container') | ||
expect(listItems.length).toBe(2) | ||
expect(listItems.at(0).find('span').text()).toBe('Canada and U.S. Toll Free:') | ||
expect(listItems.at(0).find('.contact-value').text()).toBe('1-877-370-1033') | ||
expect(listItems.at(1).find('span').text()).toBe('Victoria Office:') | ||
expect(listItems.at(1).find('.contact-value').text()).toBe('250-370-1033') | ||
|
||
wrapper.destroy() | ||
}) | ||
}) |
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
Oops, something went wrong.