taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 6eaeb20812144000f10631d26c39c6f5feee0ca0
parent 57abe01f3e1bb0849aebc65af825739fc31875fd
Author: Sebastian <sebasjm@taler-systems.com>
Date:   Wed, 11 Feb 2026 18:12:26 -0300

remove dead comments

Diffstat:
Mpackages/taler-harness/src/integrationtests/web/test-merchant-self-provision-activation.ts | 136-------------------------------------------------------------------------------
1 file changed, 0 insertions(+), 136 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/web/test-merchant-self-provision-activation.ts b/packages/taler-harness/src/integrationtests/web/test-merchant-self-provision-activation.ts @@ -92,144 +92,8 @@ taler-harness run-helper --socket ${socketFile} -- $@ const nousername = await browser.findElement(By.css("aside")); t.assertTrue(nousername !== undefined) - const asd = await browser.takeScreenshot() - console.log(asd) await browser.quit(); - // create instance with self provision - - // const instanceInfo = { - // id: "self-instance", - // name: "My instance", - // auth: { - // method: MerchantAuthMethod.TOKEN, - // password: "123", - // }, - // default_pay_delay: Duration.toTalerProtocolDuration( - // Duration.fromSpec({ days: 14 }), - // ), - // default_wire_transfer_delay: Duration.toTalerProtocolDuration( - // Duration.fromSpec({ days: 14 }), - // ), - // jurisdiction: {}, - // address: {}, - // email: "some@taler.net", - // phone_number: "+1111", - // use_stefan: false, - // }; - // const signupStart = alternativeOrThrow( - // await merchantClient.createInstanceSelfProvision(instanceInfo), - // HttpStatusCode.Accepted, - // ); - - // creation requires 2fa - // t.assertDeepEqual(signupStart.challenges.length, 2); - // t.assertDeepEqual(signupStart.combi_and, true); - - // const firstChallenge = signupStart.challenges[0]; - // const secondChallenge = signupStart.challenges[1]; - - // //FIXME: check the order - // // always first emails since is cheaper - // // t.assertDeepEqual(firstChallenge.challenge_type, TanChannel.EMAIL); - // // t.assertDeepEqual(secondChallenge.challenge_type, TanChannel.SMS); - - // { - // // new instance is ping, then is not listed - // const r = succeedOrThrow( - // await merchantClient.listInstances(merchantAdminAccessToken), - // ); - // t.assertDeepEqual(r.instances.length, 2); - // } - - // { - // succeedOrThrow( - // await merchantClient.sendChallenge(firstChallenge.challenge_id), - // ); - - // const message = helper.getLastCodeForAddress(instanceInfo.phone_number); - // const [tanCode] = message.split("\n"); - // succeedOrThrow( - // await merchantClient.confirmChallenge(firstChallenge.challenge_id, { - // tan: tanCode, - // }), - // ); - // } - - // { - // succeedOrThrow( - // await merchantClient.sendChallenge(secondChallenge.challenge_id), - // ); - - // const message = helper.getLastCodeForAddress(instanceInfo.email); - // const [tanCode] = message.split("\n"); - // succeedOrThrow( - // await merchantClient.confirmChallenge(secondChallenge.challenge_id, { - // tan: tanCode, - // }), - // ); - // } - - // const completeSignup = await merchantClient.createInstanceSelfProvision( - // instanceInfo, - // { - // challengeIds: [firstChallenge.challenge_id, secondChallenge.challenge_id], - // }, - // ); - - // t.assertDeepEqual(completeSignup.type, "ok"); - - // const instanceApi = new TalerMerchantInstanceHttpClient( - // merchantClient.getSubInstanceAPI(instanceInfo.id), - // merchantClient.httpLib, - // ); - - // { - // // new instance is completed, now it should be visible - // const r = succeedOrThrow( - // await merchantClient.listInstances(merchantAdminAccessToken), - // ); - // t.assertDeepEqual(r.instances.length, 3); - // } - - // const loginChallenge = alternativeOrThrow( - // await instanceApi.createAccessToken( - // instanceInfo.id, - // instanceInfo.auth.password, - // { - // scope: LoginTokenScope.All, - // }, - // ), - // HttpStatusCode.Accepted, - // ); - - // await solveMFA(merchantClient, helper, loginChallenge, { - // [TanChannel.EMAIL]: instanceInfo.email, - // [TanChannel.SMS]: instanceInfo.phone_number, - // }); - - // const { access_token: token } = succeedOrThrow( - // await instanceApi.createAccessToken( - // instanceInfo.id, - // instanceInfo.auth.password, - // { - // scope: LoginTokenScope.All, - // }, - // { - // challengeIds: loginChallenge.challenges.map((c) => c.challenge_id), - // }, - // ), - // ); - - // const det = succeedOrThrow( - // await instanceApi.getCurrentInstanceDetails(token), - // ); - - // // check that the instance has the new email - // t.assertDeepEqual(det.email, instanceInfo.email); - // t.assertDeepEqual(det.email_validated, true); - // t.assertDeepEqual(det.phone_number, instanceInfo.phone_number); - // t.assertDeepEqual(det.phone_validated, true); helper.stop(); }