Skip to content

Conversation

@KeitoTadashi
Copy link
Contributor

@KeitoTadashi KeitoTadashi commented Nov 17, 2025

Do not merge
fixes #883

await dialog.getByRole('button', { name: /use current address/i }).click();
await expect(dialog.getByText('Set as Display name')).toBeVisible();

// "Set as Display name" lives in a clickable panel (div), not a button
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this comment is not necessary

Suggested change
// "Set as Display name" lives in a clickable panel (div), not a button

});
test('Connect Address and Set Display', async ({ appPage: page, context, sharedState }) => {
const keypair = Ed25519Keypair.deriveKeypair(sharedState.wallet.mnemonic ?? '');
const name = `e2etest-${Math.floor(Math.random() * 100)}.iota`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const name = `e2etest-${Math.floor(Math.random() * 100)}.iota`;
const name = generateRandomName('display');

const nameCards = page.getByTestId('name-card');
await expect(nameCards.first()).toBeVisible({ timeout: 10_000 });

const nameCard = page.getByTestId('name-card').first();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const nameCard = page.getByTestId('name-card').first();
const nameCard = page.getByTestId("name-card").filter({ hasText: normalizeName(name, "at") })```

timeout: 30_000,
});
await dialog.getByRole('button', { name: 'Finish' }).click();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdyt about making a fetch call to check that the changes reflect on the network?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker though, just a thought

Copy link
Member

@VmMad VmMad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's check that the name was correctly set as display, check either the network or in the UI the pill

@KeitoTadashi KeitoTadashi requested a review from VmMad November 28, 2025 15:09
@KeitoTadashi KeitoTadashi changed the title feat(dapp): management tests connect address and set display feat(dapp): Set display name test Dec 1, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

This pull request has been deployed to Vercel.

Latest commit: 76b0952
✅ Preview: https://iota-names-859020bzu-iota1.vercel.app
🔍 Inspect: https://vercel.com/iota/iota-names/xxxqsoaivutEUzdGapmKVgQ8DjpF

View Workflow Logs

Copy link
Contributor

@panteleymonchuk panteleymonchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me all steps from test passed except last one. Pill doesn't visible, even if add timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Name management tests: Connect name to address & set as display

7 participants