Skip to content

Commit

Permalink
[wallet-ext] - update home tab name (#16757)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamos-mysten authored Mar 19, 2024
1 parent 4afd7b7 commit 128b9ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/wallet/src/ui/app/components/navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export function Navigation() {
data-testid="nav-tokens"
to="./tokens"
className={makeLinkClsNoDisabled}
title="Tokens"
title="Home"
>
<Tokens32 className="w-8 h-8" />
<span className={st.title}>Coins</span>
<span className={st.title}>Home</span>
</NavLink>
<NavLink
to="./nfts"
Expand Down
6 changes: 3 additions & 3 deletions apps/wallet/tests/balanceChanges.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('request SUI from local faucet', async ({ page, extensionUrl }) => {
const timeout = 30_000;
test.setTimeout(timeout);
await createWallet(page, extensionUrl);
await page.getByRole('navigation').getByRole('link', { name: 'Coins' }).click();
await page.getByRole('navigation').getByRole('link', { name: 'Home' }).click();

const originalBalance = await page.getByTestId('coin-balance').textContent();
await page.getByTestId('faucet-request-button').click();
Expand All @@ -57,7 +57,7 @@ test('send 20 SUI to an address', async ({ page, extensionUrl }) => {
const originAddress = originKeypair.getPublicKey().toSuiAddress();

await importWallet(page, extensionUrl, currentWalletMnemonic);
await page.getByRole('navigation').getByRole('link', { name: 'Coins' }).click();
await page.getByRole('navigation').getByRole('link', { name: 'Home' }).click();

await requestSuiFromFaucet(originAddress);
await expect(page.getByTestId('coin-balance')).not.toHaveText('0SUI');
Expand All @@ -81,7 +81,7 @@ test('check balance changes in Activity', async ({ page, extensionUrl }) => {
const originAddress = originKeypair.getPublicKey().toSuiAddress();

await importWallet(page, extensionUrl, currentWalletMnemonic);
await page.getByRole('navigation').getByRole('link', { name: 'Coins' }).click();
await page.getByRole('navigation').getByRole('link', { name: 'Home' }).click();

await requestSuiFromFaucet(originAddress);
await page.getByTestId('nav-activity').click();
Expand Down
4 changes: 2 additions & 2 deletions apps/wallet/tests/onboarding.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import { generateKeypair } from './utils/localnet';

test('create new wallet', async ({ page, extensionUrl }) => {
await createWallet(page, extensionUrl);
await page.getByRole('navigation').getByRole('link', { name: 'Coins' }).click();
await page.getByRole('navigation').getByRole('link', { name: 'Home' }).click();
await expect(page.getByTestId('coin-page')).toBeVisible();
});

test('import wallet', async ({ page, extensionUrl }) => {
const { mnemonic, keypair } = await generateKeypair();
importWallet(page, extensionUrl, mnemonic);
await page.getByRole('navigation').getByRole('link', { name: 'Coins' }).click();
await page.getByRole('navigation').getByRole('link', { name: 'Home' }).click();
await expect(
page.getByText(keypair.getPublicKey().toSuiAddress().slice(0, 6)).first(),
).toBeVisible();
Expand Down

0 comments on commit 128b9ed

Please sign in to comment.