From 1eb43ea482341722b0d04817eaaabdc083ebffa4 Mon Sep 17 00:00:00 2001 From: xbeghers Date: Tue, 7 Jan 2025 09:18:07 +0100 Subject: [PATCH] Fix for WALLET-460 --- e2e-tests/constants.ts | 4 ++-- e2e-tests/popup/stakes/delegate.spec.ts | 5 +++++ e2e-tests/popup/stakes/redelagation.spec.ts | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/e2e-tests/constants.ts b/e2e-tests/constants.ts index 51248a82c..346a79251 100644 --- a/e2e-tests/constants.ts +++ b/e2e-tests/constants.ts @@ -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 = { diff --git a/e2e-tests/popup/stakes/delegate.spec.ts b/e2e-tests/popup/stakes/delegate.spec.ts index 01a2bc196..e7cb28731 100644 --- a/e2e-tests/popup/stakes/delegate.spec.ts +++ b/e2e-tests/popup/stakes/delegate.spec.ts @@ -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(); } ); }); diff --git a/e2e-tests/popup/stakes/redelagation.spec.ts b/e2e-tests/popup/stakes/redelagation.spec.ts index 3c2b7fecb..b2d845722 100644 --- a/e2e-tests/popup/stakes/redelagation.spec.ts +++ b/e2e-tests/popup/stakes/redelagation.spec.ts @@ -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();