Made changes suggested
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
All Stories
Jan 20 2025
Back out unrelated package-lock.json changes
greening this as I don't want to block it when I go to bed, but the package-lock.json changes should be backed out before landing
So look at the code:
- The second test is doing the same as the first plus some more. This makes it clear that you don't need both because they are overlapping
- As a result you don't need serial. To be honest I don't know why you needed it in the first place, but after it's obvious that it's no longer needed.
- Because you only need a single test, you can build on top of the one from the dependency diff D17564, which will avoid me requesting the same changes again.
Please fix the typos in the summary, and fix the test plan which doesn't work.
To format commands you can either use backticks (example) or on a newline prepend with two spaces:
like so
Don't use quotes for "Depends on xxxxx" (I edited your summary to remove them)
The test plan doesn't work
Fix the ordering icons
Jan 19 2025
Jan 18 2025
In D17562#399652, @bytesofman wrote:mb this issue is just from me running it locally?
sorting is broken at explorer.e.cash, but I do see the arrow highlighted on clicking to show sort:
Running this diff, the sorting is fixed, but I do not see the up or down arrows highlight on click to indicate sort:
The arrow highlighting still works on the "size" sort option but not Age or Date. Probably since Age and Date are now actually sorting by timestamp, so the templating is not picking up the effect.
probably still worth landing the diff to fix the behavior. I am not sure how I would fix this style issue with rust templating.
mb this issue is just from me running it locally?
Jan 17 2025
In D17549#399471, @bytesofman wrote:In D17549#399468, @Fabien wrote:So before this patch it's broken and after this patch it's not, great.
May I ask how it's broken and how it's fixed ? Because I can't spot the change in behavior.Yes, some history changed before I got this diff to have tests passing. When I first pushed it up, the only test that changed was the App test.
Before this diff
- Cashtab intended behavior is for a spinner to lock the UI when loading is true. This happens on the App component, which renders the routes, so it will work on any given screen.
- However the conditional rendering has a bug, such that even when loading is true, the Spinner may not render. This diff patches the bug.
- For the test in App -- we show that this spinner is in the screen when the component loads, which is expected behavior.
However, there are a number of knock ons from this change. Cashtab has many tests that need to wait for stuff to load. Thish stuff takes longer depending on the screen. Some of the tests are configured to wait for inline spinners to go away, others are configured to wait for cashtab's bootup to complete. Now that the wallet update spinner is fixed, there is something else that some tests may need to wait for. So, this has caused some other tests to fail. Running the CI and locally revealed some tests to be flaky, i.e. it can be difficult to tell which loading component we must wait for, and I have not (yet) managed to come up with a "catch all" routine to just wait for everything to load in a way that is standard for all tests.
At the moment, I don't think I can confidently predict exactly how to fix all of the various tests and their loading conditions to wait for the right spinners to be present or not present. So we may see some test flakiness after this diff (we had test flakiness of the same kind before this diff, it's just that I iterated through it on those tests with this bug in the system; now that the bug is gone there may be some new loading conditions to handle in existing tests).
This bug was discovered while fixing the wallet changing behavior when I noticed that the spinnner was not appearing even when I manually setLoading(true) to wait for a wallet to load.
In D17549#399466, @emack wrote:I assume the flakiness of the test you're referring to is when the int test is waiting for the spinner to disappear but it doesn't, and the await waitFor() call just hangs there holding up the entire test suite?
// Wait for Cashtab wallet info to load await waitFor(() => expect(screen.queryByTitle('Loading...')).not.toBeInTheDocument(), );
In D17549#399468, @Fabien wrote:So before this patch it's broken and after this patch it's not, great.
May I ask how it's broken and how it's fixed ? Because I can't spot the change in behavior.
So before this patch it's broken and after this patch it's not, great.
May I ask how it's broken and how it's fixed ? Because I can't spot the change in behavior.
I assume the flakiness of the test you're referring to is when the int test is waiting for the spinner to disappear but it doesn't, and the await waitFor() call just hangs there holding up the entire test suite?
tested with a Trezor T