Skip to content

Commit

Permalink
Fix for WALLET-460
Browse files Browse the repository at this point in the history
  • Loading branch information
xbeghers committed Jan 7, 2025
1 parent a357369 commit 1eb43ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e-tests/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ export const NEW_VALIDATOR_FOR_SIGNATURE_REQUEST = {

export const VALIDATOR_FOR_STAKE = {
publicKey:
'010e5669b070545e2b32bc66363b9d3d4390fca56bf52a05f1411b7fa18ca311c7',
truncatedPublicKey: '010e...11c7'
'01f340df2c32f25391e8f7924a99e93cab3a6f230ff7af1cacbfc070772cbebd94',
truncatedPublicKey: '01f3...bd94'
};

export const NEW_VALIDATOR_FOR_STAKE = {
Expand Down
5 changes: 5 additions & 0 deletions e2e-tests/popup/stakes/delegate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ popup.describe('Popup UI: Delegation', () => {
name: 'You’ve submitted a delegation'
})
).toBeVisible();

await popupPage.waitForTimeout(1000);
await popupPage.getByRole('button', { name: 'Done' }).click();

await popupPage.getByText('Close').click();
}
);
});
5 changes: 5 additions & 0 deletions e2e-tests/popup/stakes/redelagation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ popup.describe('Popup UI: Redelegation', () => {

await new Promise(r => setTimeout(r, 2000));

await popupPage
.getByPlaceholder('Validator public address', { exact: true })
.fill(VALIDATOR_FOR_STAKE.publicKey);

await new Promise(r => setTimeout(r, 2000));
await popupPage
.getByText(VALIDATOR_FOR_STAKE.truncatedPublicKey, { exact: true })
.click();
Expand Down

0 comments on commit 1eb43ea

Please sign in to comment.