Page MenuHomePhabricator

[Cashtab][Alias] Open the pending aliases dropdown by default
ClosedPublic

Authored by emack on Dec 1 2023, 08:03.

Details

Summary

As per UAT feedback in T3363, this diff opens the pending aliases dropdown by default.

Test Plan

Navigate to Alias.js, observe the pending aliases dropdown is open.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pendingListOpen
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25786
Build 51152: Build Diffcashtab-tests
Build 51151: arc lint + arc unit

Event Timeline

emack requested review of this revision.Dec 1 2023, 08:03
Fabien requested changes to this revision.Dec 1 2023, 09:25
Fabien added a subscriber: Fabien.
Fabien added inline comments.
cashtab/src/components/Alias/__tests__/__snapshots__/Alias.test.js.snap
1

Please keep the generated mark if it's a generated file

This revision now requires changes to proceed.Dec 1 2023, 09:25
emack marked an inline comment as done.

Adding the generated tag back into snapshot

cashtab/src/components/Alias/__tests__/__snapshots__/Alias.test.js.snap
1

will get this automated. I have been removing this tag according to these best practices:

https://jestjs.io/docs/snapshot-testing#best-practices

The files are indeed generated. However, we should be doing a sanity check to make sure the updated snapshot matches the code change. The point of the snapshots is to track changes that break components. So, we want to make sure that they failed bc an update was required, not for some other reason.

So -- for now, when I add automation, I do not plan to add the // @generated

Fabien added inline comments.
cashtab/src/components/Alias/__tests__/__snapshots__/Alias.test.js.snap
1

we should be doing a sanity check to make sure the updated snapshot matches the code change

Isn't it the job of the tests ?

This revision is now accepted and ready to land.Dec 1 2023, 19:31