-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
46 additions
and
7 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
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 |
---|---|---|
|
@@ -299,7 +299,10 @@ const bcRegistryEmail = "[email protected]"; | |
<li class="body-compact-01"> | ||
If your name isn’t there, call BC Registry toll free at | ||
<a href="tel:18775261526">1-877-526-1526</a> or email them at | ||
<button class="link-button" @click="openMailtoLink(bcRegistryEmail)" aria-label="Contact BC Registry via Email"> | ||
<button id="bcRegistryEmailId" | ||
class="link-button" | ||
@click="openMailtoLink(bcRegistryEmail)" | ||
aria-label="Contact BC Registry via Email"> | ||
<span v-bind:innerHTML="getObfuscatedEmail(bcRegistryEmail)"></span> | ||
</button>. | ||
</li> | ||
|
36 changes: 36 additions & 0 deletions
36
frontend/tests/pages/bceid/BusinessInformationWizardStep.cy.ts
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,36 @@ | ||
import BusinessInformationWizardStep from "@/pages/bceidform/BusinessInformationWizardStep.vue"; | ||
import type { FormDataDto } from "@/dto/ApplyClientNumberDto"; | ||
|
||
describe('<BusinessInformationWizardStep />', () => { | ||
beforeEach(() => { | ||
cy.intercept('/api/clients/name/*').as('autoCompleteRequest'); | ||
}); | ||
|
||
it('renders the BusinessInformationWizardStep component and interacts with elements', () => { | ||
cy.mount(BusinessInformationWizardStep, { | ||
props: { | ||
data: { | ||
businessInformation: { | ||
businessType: "", | ||
legalType: "", | ||
clientType: "", | ||
incorporationNumber: "", | ||
businessName: "", | ||
goodStandingInd: "", | ||
birthdate: "", | ||
address: "" | ||
}, | ||
} as unknown as FormDataDto, | ||
active: false, | ||
}, | ||
}); | ||
|
||
cy.get('#businessTyperbR').click(); | ||
|
||
cy.get('#bcRegistryEmailId').click(); | ||
|
||
cy.get('.link-button:visible').should('have.attr', 'aria-label', 'Contact BC Registry via Email'); | ||
cy.get('.link-button:visible span').should('exist'); | ||
cy.get('.link-button:visible span').invoke('text').should('not.be.empty'); | ||
}); | ||
}); |