[All Browsers] Casper Wallet | Wallet active origin issues
Found 2 issues:
- Wallet status badge shows disconnect status at the same time playground show connected
- Wallet shows a few of the same accounts in the connected sites list for one site
These issues reproduce in Safari, Chrome, and Firefox
The first issue
Pre-conditions: A vault with an account exists Wallet unlock
v 1.3.0
STR:
- Open Safari and navigate to playground
- Connect wallet to playground
- Close Safari
- Open Safari again and navigate to playground
Expected result: You sign in to the playground and wallet shows that you connected Actual result: Playground shows that you connected but wallet doesn't
Second issue
Pre-conditions: A vault with an account exists Wallet unlock You have 2 accounts
STR:
- Open Safari and navigate to playground
- Connect account 1 to playground
- Close Safari
- Open Safari again and navigate to playground
- Switch to account 2
- Click connect button on playground
- Connect account 1 to playground again
- Open connected site list
Expected result: You cannot connect account 1 to the playground again and you see only one account 1 in the connected site list Actual result: You can connect account 1 a second time to the playground and see two times account 1 in the connected site list
https://user-images.githubusercontent.com/44294945/234666425-56c98e58-abdb-4216-b7e1-be859f551571.mov
Verified on build 1.3.1 as fixed, moving to 'Done'.