Skip to content

Commit

Permalink
feat(e2ei): change status from now_downloaded to not_verified (#17035)
Browse files Browse the repository at this point in the history
  • Loading branch information
aweiss-dev committed Mar 11, 2024
1 parent ee90b8d commit eb2dc80
Show file tree
Hide file tree
Showing 49 changed files with 13 additions and 54 deletions.
1 change: 0 additions & 1 deletion src/i18n/ar-SA.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/bn-BD.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/ca-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/da-DK.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/el-GR.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/et-EE.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/fa-IR.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/fi-FI.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/ga-IE.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/he-IL.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/hi-IN.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/hr-HR.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/hu-HU.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/id-ID.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/is-IS.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
3 changes: 1 addition & 2 deletions src/i18n/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
"E2EI.expires_soon": "Valid (expires soon)",
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.not_activated": "Not activated",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/lt-LT.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/lv-LV.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/ms-MY.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/nl-NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/no-NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/ro-RO.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/sk-SK.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/sl-SI.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/sr-SP.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/sv-SE.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/th-TH.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/tr-TR.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/uz-UZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/vi-VN.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/zh-HK.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
1 change: 0 additions & 1 deletion src/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"E2EI.getCertificate": "Get Certificate",
"E2EI.notAvailable": "Not available",
"E2EI.not_activated": "Not activated",
"E2EI.not_downloaded": "Not downloaded",
"E2EI.revoked": "Revoked",
"E2EI.serialNumber": "Serial number: ",
"E2EI.showCertificateDetails": "Show Certificate Details",
Expand Down
2 changes: 1 addition & 1 deletion src/script/E2EIdentity/E2EIdentityVerification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {ConversationState} from '../conversation/ConversationState';

export enum MLSStatuses {
VALID = 'valid',
NOT_DOWNLOADED = 'not_downloaded',
NOT_ACTIVATED = 'not_activated',
EXPIRED = 'expired',
EXPIRES_SOON = 'expires_soon',
REVOKED = 'revoked',
Expand Down
2 changes: 1 addition & 1 deletion src/script/E2EIdentity/certificateDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const mapMLSStatus = (status?: CoreStatus) => {
};

if (!status) {
return MLSStatuses.NOT_DOWNLOADED;
return MLSStatuses.NOT_ACTIVATED;
}
return statusMap[status];
};
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ describe('VerificationBadges', () => {

it('is not downloaded', async () => {
const {getByTestId} = render(
withTheme(<VerificationBadges context="conversation" MLSStatus={MLSStatuses.NOT_DOWNLOADED} />),
withTheme(<VerificationBadges context="conversation" MLSStatus={MLSStatuses.NOT_ACTIVATED} />),
);

const E2EIdentityStatus = getByTestId('mls-conversation-status');
expect(E2EIdentityStatus.getAttribute('data-uie-value')).toEqual(MLSStatuses.NOT_DOWNLOADED);
expect(E2EIdentityStatus.getAttribute('data-uie-value')).toEqual(MLSStatuses.NOT_ACTIVATED);
});

it('is expired', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const MLSVerificationBadge = ({context, MLSStatus}: {MLSStatus?: MLSStatuses; co
<MLSVerified />
</Tooltip>
);
case MLSStatuses.NOT_DOWNLOADED:
case MLSStatuses.NOT_ACTIVATED:
return (
<Tooltip {...mlsVerificationProps} body={t('E2EI.certificateNotDownloaded')}>
<CertificateExpiredIcon />
Expand Down
2 changes: 1 addition & 1 deletion src/script/hooks/useDeviceIdentities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const useUserIdentity = (userId: QualifiedId, groupId?: string, updateAft
? undefined
: deviceIdentities.length > 0 && deviceIdentities.every(identity => identity.status === MLSStatuses.VALID)
? MLSStatuses.VALID
: MLSStatuses.NOT_DOWNLOADED,
: MLSStatuses.NOT_ACTIVATED,

getDeviceIdentity:
deviceIdentities !== undefined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {MLSStatuses} from 'src/script/E2EIdentity';
const MLSStatusColor = {
[MLSStatuses.VALID]: 'var(--green-500)',
[MLSStatuses.EXPIRED]: 'var(--red-500)',
[MLSStatuses.NOT_DOWNLOADED]: 'var(--red-500)',
[MLSStatuses.NOT_ACTIVATED]: 'var(--red-500)',
[MLSStatuses.EXPIRES_SOON]: 'var(--green-500)',
[MLSStatuses.REVOKED]: 'var(--red-500)',
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('E2EICertificateDetails', () => {
const {getByTestId} = render(withTheme(<E2EICertificateDetails />));

const E2EIdentityStatus = getByTestId('e2ei-identity-status');
expect(E2EIdentityStatus.getAttribute('data-uie-value')).toEqual(MLSStatuses.NOT_DOWNLOADED);
expect(E2EIdentityStatus.getAttribute('data-uie-value')).toEqual(MLSStatuses.NOT_ACTIVATED);
});

it('is e2ei identity expired', async () => {
Expand Down
Loading

0 comments on commit eb2dc80

Please sign in to comment.