-
Notifications
You must be signed in to change notification settings - Fork 1
feat(dapp): Set display name test #929
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
base: develop
Are you sure you want to change the base?
feat(dapp): Set display name test #929
Conversation
…ress-and-set-display
| 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 |
There was a problem hiding this comment.
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
| // "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`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| const nameCard = page.getByTestId('name-card').first(); | |
| const nameCard = page.getByTestId("name-card").filter({ hasText: normalizeName(name, "at") })``` |
…ress-and-set-display
| timeout: 30_000, | ||
| }); | ||
| await dialog.getByRole('button', { name: 'Finish' }).click(); | ||
|
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
…ress-and-set-display
…ress-and-set-display
…ress-and-set-display
VmMad
left a comment
There was a problem hiding this 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
…ress-and-set-display
|
This pull request has been deployed to Vercel.
|
panteleymonchuk
left a comment
There was a problem hiding this 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.
Do not merge
fixes #883