@@ -722,23 +722,25 @@ AN8G3r5Htj8olot+jm9mIa5XLXWzMNUZgg==
722722 }
723723 } ) ) ;
724724
725- // todo - change to an "add key" instead of initial import test
726- // todo - disable initial import of s/mime key
727- // todo - disable import of encrypted s/mime key, require decrypted?
728- // ava.default.only(
729- // 'setup - s/mime private key',
730- // testWithBrowser(undefined, async (t, browser) => {
731- // const settingsPage = await BrowserRecipe.openSettingsLoginApprove(t, browser, 'flowcrypt.test.key.imported@gmail.com');
732- // const key = {
733- // title: 's/mime pkcs12 encrypted key',
734- // filePath: 'test/samples/smime/human-unprotected-PKCS12.p12',
735- // armored: null,
736- // passphrase: 'test pp to encrypt unprotected key',
737- // longid: null
738- // };
739- // await SetupPageRecipe.manualEnter(settingsPage, key.title, { submitPubkey: false, usedPgpBefore: false, key });
740- // })
741- // );
725+ ava . default (
726+ 'setup - s/mime private key' ,
727+ testWithBrowser ( undefined , async ( t , browser ) => {
728+ const settingsPage = await BrowserRecipe . openSettingsLoginApprove ( t , browser , 'flowcrypt.test.key.imported@gmail.com' ) ;
729+ const key = {
730+ title : 's/mime pkcs12 unprotected key' ,
731+ filePath : 'test/samples/smime/human-unprotected-PKCS12.p12' ,
732+ armored : null , // tslint:disable-line:no-null-keyword
733+ passphrase : 'test pp to encrypt unprotected key' ,
734+ longid : null // tslint:disable-line:no-null-keyword
735+ } ;
736+ await SetupPageRecipe . manualEnter ( settingsPage , key . title , { fillOnly : true , submitPubkey : false , usedPgpBefore : false , key } ) ;
737+ await settingsPage . waitAndClick ( '@input-step2bmanualenter-save' , { delay : 1 } ) ;
738+ await Util . sleep ( 1 ) ;
739+ await settingsPage . waitAndRespondToModal ( 'confirm' , 'confirm' , 'Using S/MIME as the only key on account is experimental.' ) ;
740+ await settingsPage . waitAndClick ( '@action-step4done-account-settings' , { delay : 1 } ) ;
741+ await SettingsPageRecipe . ready ( settingsPage ) ;
742+ } )
743+ ) ;
742744
743745 }
744746
0 commit comments