-
Notifications
You must be signed in to change notification settings - Fork 973
Fix disabled ledger / payments panel tests #6911
Comments
This one is a unittest Auditors: @bsclifton Related to #6911
The Advanced Panel tests in More detail: |
no I don't think so, do you know why more specifically they are failing ? Which type of sendSync? |
sure! the test client
browser-laptop/test/lib/brave.js Line 728 in 1faf82a
which calls browser-laptop/test/lib/brave.js Line 176 in 1faf82a
where the argument passed was browser-laptop/test/lib/brave.js Line 178 in 1faf82a
-- |
The tests have been working for me, they just seem intermittent. I'm looking at the regular (not advanced) tests right now and haven't been able to get them to fail locally. |
@bsclifton, this issue is for advanced tests, I think ("Ledger Payments advanced panel tests are failing consistently so I had to disable them" -@bbondy at top, also his examples). Could you check whether those are failing for you with full browser crash upon retrieving translations (via |
@willy-b both regular panel tests and advanced were failing for me regularly when I was maintaining the 0.13.1 branch. With advanced however, the problem seemed to be the first step timing out (which saves the file. If that fails, all of the other tests fail too (since they rely on that being done). I had already started to look into a fix (have it stashed somewhere) which will redo the setup if needed |
ok @bsclifton , let me make sure I understand:
is that right? |
@willy-b no, I apologize. I think this issue covering multiple items has made things confusing. This issue was created by @bbondy because:
As I maintained the When I looked into #3 (advanced payment panel tests) before, I noticed it would sometimes crash or hang during the first step (which would save the keys to a file). This would then cause subsequent tests to fail. Perhaps this is the IPC issue you're talking about (I hadn't looked into it that much). Basically, I'm just trying to share that everything except the ones you were talking about are fixed now 😄 Did you want to look into it more or would you mind if I jumped in too? |
ah, totally clear now. go for it! I wasn't taking the issue, just sharing observations. do let me know if you see the new crash for Advanced Panel tests too (#6911 (comment)) |
I added the release/not-blocking label according to @bbondy |
the crash I mentioned earlier has been resolved since I last checked, sweet. opened a PR (#7401) with a couple of other changes needed to fix these tests:
|
I guess I will take over this issue since I did big refactoring of payments tab. Will address it after all outstanding PR's related to this tab will be merged. |
@NejcZdovc I can help you look at this 😄 I had been looking at it but didn't make any progress... I think part of the failure is because saving the keys has the same call to printToPDF which was failing (ex: with viewing contribution statement) |
what printToPDF call, @bsclifton? the recovery keys are saved to a text file (.txt not PDF) or printed using
(Source: Line 317 in 2aeb514
|
and I don't think there are any tests yet around printing the recovery keys, only saving them to a .TXT file, so there were no test failures from that. |
@willy-b ah ok, my bad! too many issues, not enough time 😄 edit: I believe the save to file does a printToPDF in Muon |
RE: your comment edit @bsclifton: "I believe the save to file does a printToPDF in Muon" |
@willy-b correct again 😄 |
Resolves brave#6911 Auditors: @willy-b @bsclifton Test Plan: - npm run uitest -- --grep="Advanced payment panel tests"
Resolves brave#6911 Resolves brave#6890 Auditors: @willy-b @bsclifton Test Plan: - npm run uitest -- --grep="Advanced payment panel tests"
Fix for Advanced Ledger Panel tests
#6890
/cc @willy-b @bsclifton @mrose17
Ledger Payments advanced panel tests are failing consistently so I had to disable them. Please cleanup as soon as possible. I would have reverted instead but there were too many dependent commits after it.
Ledger tests are failing consistently so I reverted just the tests for now.
I also noticed some problems with the tests so the changesets probably shoudln't have landed.
Some notes that I noticed too about these tests:
.pause(1000)
pauses shouldn't be used at all, instead waitFor some event. If you need to add a new custom waitFor you can add it in test/lib/brave.jsit()
calls, each test should be able to be run independently though so some of that logic should go in abefore
call instead. E.g.context.recoveryFilePathname
. You should be able to donpm run test -- --grep="shows an error popover if one recovery key is missing"
Please block landing any further ledger work on fixing this in case we need to revert a bunch of things.
These should be reverted once the tests work:
15e5628897cebbHere's from one recent run:
Here's from another:
The text was updated successfully, but these errors were encountered: