3ab233940c
* Add user status on user profile icon Currently unstyled & no tests * Style the user status icon * Update snapshot for avatar wrapper * More snapshot updates * add if braces * Split out user status functions to avoid circular dep which has the weird effect of just breaking jest's mocking. * type imports * Update imports * Update snapshot * Tests * baseline image * Just snapshot the component itself * User status in user menu first pass, unstyled * fix export * superstylin' * snapshots * Add story & test * Snapshots and re-use the repeated rules * Tests * Fix jest lcov projectRoot config * Change tooltip text to just 'clear' * Add comment & fix console warn * Remove all options screenshot as it's not really particularly useful as a preset story * remove stale screenshot * fix imports --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`UserMenuViewModel should generate a menu options for a guest 1`] = `
|
|
{
|
|
"actions": {
|
|
"createAccount": true,
|
|
"linkNewDevice": false,
|
|
"openFeedback": false,
|
|
"openHomePage": false,
|
|
"openSecurity": false,
|
|
"openSettings": true,
|
|
"signIn": true,
|
|
},
|
|
"avatarUrl": undefined,
|
|
"displayName": "@alice:domain",
|
|
"expanded": false,
|
|
"manageAccountHref": undefined,
|
|
"open": true,
|
|
"showAvatar": false,
|
|
"userId": "@alice:domain",
|
|
"userStatus": undefined,
|
|
}
|
|
`;
|
|
|
|
exports[`UserMenuViewModel should generate a menu options for a logged in client 1`] = `
|
|
{
|
|
"actions": {
|
|
"createAccount": false,
|
|
"linkNewDevice": true,
|
|
"openFeedback": false,
|
|
"openHomePage": false,
|
|
"openSecurity": true,
|
|
"openSettings": true,
|
|
"signIn": false,
|
|
},
|
|
"avatarUrl": undefined,
|
|
"displayName": "@alice:domain",
|
|
"expanded": false,
|
|
"manageAccountHref": undefined,
|
|
"open": true,
|
|
"showAvatar": true,
|
|
"userId": "@alice:domain",
|
|
"userStatus": undefined,
|
|
}
|
|
`;
|