Skip to content

Commit c2f8ff3

Browse files
chore(extension): update multi-staking faq (#711)
* chore(extension): update multi-staking faq * test(extension): fix LW-8465 --------- Co-authored-by: wklos-iohk <wojciech.klos@iohk.io>
1 parent fc79af4 commit c2f8ff3

File tree

5 files changed

+32
-36
lines changed

5 files changed

+32
-36
lines changed

apps/browser-extension-wallet/src/lib/translations/en.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,9 +973,9 @@
973973
"enterNFTGallery": "Enter the NFT gallery with Lace",
974974
"buyAnNft": "How to buy an NFT?",
975975
"stakingAndDelegation": "What are staking & delegation?",
976-
"choosingAStakePool": "Which stake pool should I choose?",
977-
"activeStake": "What is an active stake?",
978-
"stakingMadeEasy": "Staking made easy with Lace"
976+
"howManyPools": "How many stake pools can I delegate stake to, using the multi-staking or multi-delegation feature?",
977+
"ledgerSupport": "Do Ledger hardware wallets support multi-staking?",
978+
"stakeDistribution": "Does stake distribution remain the same?"
979979
}
980980
},
981981
"migrations": {

apps/browser-extension-wallet/src/views/browser-view/features/staking/components/StakingSkeleton.tsx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ import { stakingInfoSelector } from '@stores/selectors/staking-selectors';
1111
import { EducationalList, SectionLayout } from '@src/views/browser-view/components';
1212
import { useWalletStore } from '@stores';
1313
import { useFetchCoinPrice, useBalances } from '@src/hooks';
14-
import Book from '@assets/icons/book.svg';
1514
import LightBulb from '@src/assets/icons/light.svg';
16-
import Video from '@assets/icons/video.svg';
1715

1816
// eslint-disable-next-line @typescript-eslint/ban-types
1917
export const StakingSkeleton = ({ children }: PropsWithChildren<object>): React.ReactElement => {
@@ -53,21 +51,21 @@ export const StakingSkeleton = ({ children }: PropsWithChildren<object>): React.
5351
},
5452
{
5553
title: titles.faq,
56-
subtitle: t('educationalBanners.subtitle.choosingAStakePool'),
54+
subtitle: t('educationalBanners.subtitle.howManyPools'),
5755
src: LightBulb,
58-
link: `${process.env.WEBSITE_URL}/faq?question=which-stake-pool-should-i-choose`
56+
link: `${process.env.WEBSITE_URL}/faq?question=how-many-stake-pools-can-i-delegate-stake-to-using-the-multi-staking-or-multi-delegation-feature`
5957
},
6058
{
61-
title: titles.glossary,
62-
subtitle: t('educationalBanners.subtitle.activeStake'),
63-
src: Book,
64-
link: `${process.env.WEBSITE_URL}/glossary?term=active-stake`
59+
title: titles.faq,
60+
subtitle: t('educationalBanners.subtitle.ledgerSupport'),
61+
src: LightBulb,
62+
link: `${process.env.WEBSITE_URL}/faq?question=do-ledger-hardware-wallets-support-multi-staking`
6563
},
6664
{
67-
title: titles.video,
68-
subtitle: t('educationalBanners.subtitle.stakingMadeEasy'),
69-
src: Video,
70-
link: `${process.env.WEBSITE_URL}/learn?video=staking-with-lace-let-your-digital-assets-work-for-you`
65+
title: titles.faq,
66+
subtitle: t('educationalBanners.subtitle.stakeDistribution'),
67+
src: LightBulb,
68+
link: `${process.env.WEBSITE_URL}/faq?question=does-stake-distribution-remain-the-same`
7169
}
7270
];
7371

packages/e2e-tests/src/assert/educationalListAssert.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,13 @@ class EducationalListAssert {
7979

8080
async assertSeeStakingWidget() {
8181
const faqTranslation = await t(this.faqTranslationPath);
82-
const glossaryTranslation = await t(this.glossaryTranslationPath);
83-
const videoTranslation = await t(this.videoTranslationPath);
8482
const expectedTitle = await t('browserView.sidePanel.aboutStaking');
85-
const expectedTitles = [faqTranslation, faqTranslation, glossaryTranslation, videoTranslation];
83+
const expectedTitles = [faqTranslation, faqTranslation, faqTranslation, faqTranslation];
8684
const expectedSubtitles = [
8785
await t('educationalBanners.subtitle.stakingAndDelegation'),
88-
await t('educationalBanners.subtitle.choosingAStakePool'),
89-
await t('educationalBanners.subtitle.activeStake'),
90-
await t('educationalBanners.subtitle.stakingMadeEasy')
86+
await t('educationalBanners.subtitle.howManyPools'),
87+
await t('educationalBanners.subtitle.ledgerSupport'),
88+
await t('educationalBanners.subtitle.stakeDistribution')
9189
];
9290
await this.assertSeeWidget(expectedTitle, expectedTitles, expectedSubtitles);
9391
}

packages/e2e-tests/src/data/EducationalArticles.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const faqArticles: Record<string, Record<string, string>> = {
2-
'Which stake pool should I choose?': {
3-
question: 'which-stake-pool-should-i-choose',
4-
title: 'Which stake pool should I choose?'
2+
'How many stake pools can I delegate stake to, using the multi-staking or multi-delegation feature?': {
3+
question: 'how-many-stake-pools-can-i-delegate-stake-to-using-the-multi-staking-or-multi-delegation-feature',
4+
title: 'How many stake pools can I delegate stake to, using the multi-staking or multi-delegation feature?'
55
},
66
'How do I send and receive funds?': {
77
question: 'how-do-i-send-and-receive-digital-assets',
@@ -22,6 +22,14 @@ export const faqArticles: Record<string, Record<string, string>> = {
2222
'What is my recovery phrase?': {
2323
question: 'what-is-my-recovery-phrase',
2424
title: 'What is my recovery phrase?'
25+
},
26+
'Do Ledger hardware wallets support multi-staking?': {
27+
question: 'do-ledger-hardware-wallets-support-multi-staking',
28+
title: 'Do Ledger hardware wallets support multi-staking?'
29+
},
30+
'Does stake distribution remain the same?': {
31+
question: 'does-stake-distribution-remain-the-same',
32+
title: 'Does stake distribution remain the same?'
2533
}
2634
};
2735

@@ -49,10 +57,6 @@ export const glossaryArticles: Record<string, Record<string, string>> = {
4957
'What is an unconfirmed transaction?': {
5058
term: 'unconfirmed-transaction',
5159
title: 'Unconfirmed (transaction)'
52-
},
53-
'What is an active stake?': {
54-
term: 'active-stake',
55-
title: 'Active stake'
5660
}
5761
};
5862

@@ -72,9 +76,5 @@ export const videoArticles: Record<string, Record<string, string>> = {
7276
'Transaction bundles': {
7377
video: 'lace-introduces-transaction-bundles',
7478
title: 'Lace introduces transaction bundles'
75-
},
76-
'Staking made easy with Lace': {
77-
video: 'staking-with-lace-let-your-digital-assets-work-for-you',
78-
title: 'Staking with Lace - Let your digital assets work for you'
7979
}
8080
};

packages/e2e-tests/src/features/MultiDelegationPageExtended.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ Feature: Staking Page - Extended View
7979
When I click on a widget item with subtitle: "<subtitle>"
8080
Then I see a "<type>" article with title "<subtitle>"
8181
Examples:
82-
| type | subtitle |
82+
| type | subtitle |
8383
| FAQ | What are staking & delegation? |
84-
| FAQ | Which stake pool should I choose? |
85-
| Glossary | What is an active stake? |
86-
| Video | Staking made easy with Lace |
84+
| FAQ | How many stake pools can I delegate stake to, using the multi-staking or multi-delegation feature? |
85+
| FAQ | Do Ledger hardware wallets support multi-staking? |
86+
| FAQ | Does stake distribution remain the same? |
8787

8888
@LW-8469 @Testnet @Mainnet
8989
Scenario: Extended View - Network info component is present with expected content

0 commit comments

Comments
 (0)