Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: updated words in toast after sending withdrawal transaction #928

Merged
merged 3 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hooks/custom-signature/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const dispatchUnbondedMessage = ({
store.dispatch(
'general/showAlertMsg',
{
msg: t('dappStaking.toast.successfullyWithdrew'),
msg: t('dappStaking.toast.successfullyWithdrawn'),
alertType: 'success',
},
{ root: true }
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en-US/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export default {
requiredClaimFirst: 'Please claim your rewards before sending transaction',
requiredClaimFirstCompounding:
'{message} -Disable compounding, claim your rewards and then enable compounding again',
successfullyWithdrew: 'Balance is successfully withdrew',
successfullyWithdrawn: 'Balance successfully withdrawn',
successfullySetRewardDest: 'You successfully set reward destination',
successfullyStaked: 'You successfully staked to {contractAddress}',
successfullyUnbond: 'You successfully started unbonding process for {contractAddress}',
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/fr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export default {
requiredClaimFirst: "Veuillez réclamer vos récompenses avant d'envoyer une transaction",
requiredClaimFirstCompounding:
'{message} -Désactiver la composition, réclamer vos récompenses, puis réactiver la composition',
successfullyWithdrew: 'Solde retiré avec succès',
successfullyWithdrawn: 'Solde retiré avec succès',
successfullySetRewardDest: 'Vous avez défini la destination des récompenses avec succès',
},
error: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/it/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ export default {
requiredClaimFirst: 'Effettua il Claim prima di inviare la transazione',
requiredClaimFirstCompounding:
'{message} -Disabilita il compounding,fai il Claim delle ricompense e abilita nuovamente il compounding',
successfullyWithdrew: 'Saldo ritirato con successo',
successfullyWithdrawn: 'Saldo ritirato con successo',
successfullySetRewardDest: 'Hai impostato con successo la destinazione delle reward',
},
error: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/ja/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export default {
requiredClaimFirst: 'トランザクションを送る前に請求(Claim)をしてください。',
requiredClaimFirstCompounding:
'{message} -コンパウンドをオフにし、請求(Claim)してから再度オンにしてください。',
successfullyWithdrew: '引き出しに成功しました。',
successfullyWithdrawn: '引き出しに成功しました。',
successfullySetRewardDest: 'You successfully set reward destination',
},
error: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/kr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default {
requiredClaimFirst: '거래를 전송하기 전에 보상을 클레임하여 주십시오.',
requiredClaimFirstCompounding:
'{message} -컴파운딩 기능 해제, 보상을 클레임 한 뒤 다시 컴파운딩 기능을 켜주십시오.',
successfullyWithdrew: '해당 잔고가 성공적으로 출금되었습니다.',
successfullyWithdrawn: '해당 잔고가 성공적으로 출금되었습니다.',
successfullySetRewardDest: '보상 받을 위치를 성공적으로 설정하였습니다.',
},
error: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/pt/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default {
requiredClaimFirst: 'Clame suas recompensas antes de enviar a transação',
requiredClaimFirstCompounding:
'{message} -Desative a composição, clame suas recompensas e ative a composição novamente',
successfullyWithdrew: 'O saldo foi sacado com sucesso',
successfullyWithdrawn: 'O saldo foi sacado com sucesso',
successfullySetRewardDest: 'Você definiu com sucesso o destino da recompensa',
},
error: {
Expand Down
8 changes: 6 additions & 2 deletions tests/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,15 @@ export const connectWithEVM = async (page: Page, context: BrowserContext): Promi
return extensionWindow;
};

export const changeNetworkOnEVM = async (page: Page, context: BrowserContext, extensionWindow?: Page): Promise<void> => {
export const changeNetworkOnEVM = async (
page: Page,
context: BrowserContext,
extensionWindow?: Page
): Promise<void> => {
if (!extensionWindow) {
extensionWindow = await getWindow('MetaMask Notification', context);
}

await extensionWindow.waitForLoadState('load');
await extensionWindow.waitForSelector('.confirmation-page__content', { state: 'visible' });
await extensionWindow
Expand Down
7 changes: 6 additions & 1 deletion tests/test_specs/assets-evm.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { Page, expect } from '@playwright/test';
import { ApiPromise } from '@polkadot/api';
import { clickDisclaimerButton } from 'src/modules/playwright';
import { changeNetworkOnEVM, connectWithEVM, createMetamaskAccount, signInMetamask } from '../common';
import {
changeNetworkOnEVM,
connectWithEVM,
createMetamaskAccount,
signInMetamask,
} from '../common';
import { getApi } from '../common-api';
import { getWindow, test } from '../fixtures';

Expand Down
Loading