-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saved Keypairs UI Tests #1181
Saved Keypairs UI Tests #1181
Conversation
tests/mock/localStorage.ts
Outdated
export const SAVED_ACCOUNT_1 = | ||
"GA46LGGOLXJY5OSX6N4LHV4MWDFXNGLK76I4NDNKKYAXRRSKI5AJGMXG"; | ||
export const SAVED_ACCOUNT_1_SECRET = | ||
"SADVGAH3VA3NGZ5VLX2ZICV7JQAINB2ZJZYOPMBXUNI3YRLGWLOA2OFY"; | ||
export const SAVED_ACCOUNT_2 = | ||
"GD4F2N2OM2IM4MI6F6J5GVENQLNRVCYEE6XFN36MJOU5MOVFUYYSPBYG"; | ||
export const SAVED_ACCOUNT_2_SECRET = | ||
"SDVMTXXSUJG6GKFCETCKFV6FCGE7C5FYKBCV4AMD4N3SRYCDSA53KEG4"; | ||
|
||
const SAVED_ACCOUNTS = [ | ||
{ | ||
timestamp: 1732287853955, | ||
network: { | ||
id: "testnet", | ||
label: "Testnet", | ||
}, | ||
name: "Account 1", | ||
publicKey: SAVED_ACCOUNT_1, | ||
secretKey: SAVED_ACCOUNT_1_SECRET, | ||
}, | ||
{ | ||
timestamp: 1731083842367, | ||
network: { | ||
id: "testnet", | ||
label: "Testnet", | ||
}, | ||
name: "Account 2", | ||
publicKey: SAVED_ACCOUNT_2, | ||
secretKey: SAVED_ACCOUNT_2_SECRET, | ||
}, | ||
]; | ||
|
||
export const MOCK_LOCAL_STORAGE = { | ||
cookies: [], | ||
origins: [ | ||
{ | ||
origin: "http://localhost:3000", | ||
localStorage: [ | ||
{ | ||
name: "stellar_lab_saved_keypairs", | ||
value: JSON.stringify(SAVED_ACCOUNTS), | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created a separate file for all local storage mock data (will add more data in follow-up PRs).
Preview is available here: |
Preview is available here: |
Preview is available here: |
Preview is available here: |
Preview is available here: |
No description provided.