mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
[PM-7998] update chrome extension link in the vault onboarding module (#9087)
* vault-onboarding: update chrome extension link * update spec
This commit is contained in:
parent
7a9b279b97
commit
7ea786e662
@ -108,7 +108,7 @@ describe("VaultOnboardingComponent", () => {
|
|||||||
it("should set extensionUrl to Chrome Web Store when isChrome is true", async () => {
|
it("should set extensionUrl to Chrome Web Store when isChrome is true", async () => {
|
||||||
jest.spyOn((component as any).platformUtilsService, "isChrome").mockReturnValue(true);
|
jest.spyOn((component as any).platformUtilsService, "isChrome").mockReturnValue(true);
|
||||||
const expected =
|
const expected =
|
||||||
"https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb";
|
"https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb";
|
||||||
await component.ngOnInit();
|
await component.ngOnInit();
|
||||||
expect(component.extensionUrl).toEqual(expected);
|
expect(component.extensionUrl).toEqual(expected);
|
||||||
});
|
});
|
||||||
|
@ -169,7 +169,7 @@ export class VaultOnboardingComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
setInstallExtLink() {
|
setInstallExtLink() {
|
||||||
if (this.platformUtilsService.isChrome()) {
|
if (this.platformUtilsService.isChrome()) {
|
||||||
this.extensionUrl =
|
this.extensionUrl =
|
||||||
"https://chrome.google.com/webstore/detail/bitwarden-free-password-m/nngceckbapebfimnlniiiahkandclblb";
|
"https://chromewebstore.google.com/detail/bitwarden-password-manage/nngceckbapebfimnlniiiahkandclblb";
|
||||||
} else if (this.platformUtilsService.isFirefox()) {
|
} else if (this.platformUtilsService.isFirefox()) {
|
||||||
this.extensionUrl =
|
this.extensionUrl =
|
||||||
"https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/";
|
"https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/";
|
||||||
|
Loading…
Reference in New Issue
Block a user