Skip to content

Update settings_2 for #342 fix + small refactor - #46

Merged
piotr-iohk merged 1 commit into
mainfrom
fix/zero-denomination
Nov 14, 2025
Merged

Update settings_2 for #342 fix + small refactor#46
piotr-iohk merged 1 commit into
mainfrom
fix/zero-denomination

Conversation

@piotr-iohk

Copy link
Copy Markdown
Collaborator

No description provided.

@piotr-iohk
piotr-iohk requested a review from Copilot November 14, 2025 10:25
@piotr-iohk piotr-iohk self-assigned this Nov 14, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes issue #342 and refactors element selection in the settings tests to use more specific elementByIdWithin queries instead of array indexing with elementsById. The changes improve test reliability by targeting elements within specific parent containers rather than relying on DOM order.

Key changes:

  • Fixed assertion for Bitcoin unit display to expect '0.00000000' instead of '0'
  • Refactored element queries to use elementByIdWithin with parent-child relationships
  • Moved unitRow query to occur after navigation actions complete

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/specs/settings.e2e.ts
await doNavigationClose();

await expect(await elementsById('MoneyFiatSymbol')[1]).toHaveText('€');
await expect(fiatSymbol).toHaveText('€');

Copilot AI Nov 14, 2025

Copy link

Choose a reason for hiding this comment

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

The fiatSymbol element was queried at the beginning of the test before any currency changes. After changing the currency to EUR, the element reference may be stale and not reflect the updated currency symbol. Re-query the element after the currency change to ensure the assertion validates the current DOM state.

Copilot uses AI. Check for mistakes.
Comment thread test/specs/settings.e2e.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants