Skip to content

Conversation

@bznein
Copy link
Collaborator

@bznein bznein commented Nov 4, 2025

Also solves a few flakiness issues and reverts an accidental change.

Before asking for reviews, here is a check list of the most common things you might need to consider:

  • updating the Changelog
  • writing unit tests
  • checking if your changes affect other coins or tokens in unintended ways
  • testing on multiple environments (Qt, Android, ...)
  • having an AI review your changes

@bznein bznein requested a review from thisconnect November 4, 2025 09:57
Copy link
Collaborator

@thisconnect thisconnect left a comment

Choose a reason for hiding this comment

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

LGTM, with one point about not using id for tests, please change to data-testid


const { stdout } = await execAsync(cmd);
return stdout.trim();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand engouh docker and am always confused about when to use spawn, fork or exec.

It looks very cool what you do in this file with the regtest, but I am not the right person to review this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, I will revisit this file, add some comments, and ask for another reviewer :)

@bznein bznein force-pushed the regtest branch 8 times, most recently from fa11eee to 62f6f60 Compare November 5, 2025 12:04
Copy link
Collaborator

@thisconnect thisconnect left a comment

Choose a reason for hiding this comment

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

LGTM with suggestion/question

for (let i = 0; i < units.length; i++) {
await page.locator(`header [data-testid="amount-unit-${units[currentIndex]!}"]`).click();
const nextIndex = (currentIndex + 1) % units.length;
await page.waitForTimeout(1000); // wait for the UI to update
Copy link
Collaborator

Choose a reason for hiding this comment

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

q: instead of always waiting 1s, maybe waitFor() would be a better alternative?

https://playwright.dev/docs/api/class-locator#locator-wait-for

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure how it would be possible to use waitFor here, based on the documentation. This are the possible states we can wait for: https://playwright.dev/docs/api/class-locator#locator-wait-for-option-state and none of them suit our case, if I'm not mistaken

@bznein bznein requested a review from benma November 11, 2025 11:23
@bznein
Copy link
Collaborator Author

bznein commented Nov 11, 2025

adding @benma mostly for the regtest part, but feel free to dig around everything else as well :D

@bznein bznein mentioned this pull request Nov 11, 2025
5 tasks
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