From fb82cd96979eaaf50d8b82da0d7aaca99e3db1bc Mon Sep 17 00:00:00 2001 From: Zacharias Fragkiadakis Date: Sat, 4 Jan 2025 12:15:36 +0200 Subject: [PATCH] test(e2e): write test for creating the directory after the setting is updated Signed-off-by: Zacharias Fragkiadakis --- test/e2e/specs/settings.spec.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/e2e/specs/settings.spec.ts b/test/e2e/specs/settings.spec.ts index 3fe5678b..f0830111 100644 --- a/test/e2e/specs/settings.spec.ts +++ b/test/e2e/specs/settings.spec.ts @@ -137,6 +137,22 @@ describe('Settings', () => { await $`rm -rf ${tempNodeHomePath}` }) + + // eslint-disable-next-line max-len + it('recognizes if the directory is created *after* the setting is updated @skipLinuxCI', async () => { + const tempNodeHomePath = `${nodeHomePath}.temp` + await outputView.clearText() + + await setTextSettingValue(pathToNodeHomeSetting, tempNodeHomePath) + + await expectOutputToContain(outputView, '✗ Error: Radicle profile not found in') + + await $`cp -r ${nodeHomePath} ${tempNodeHomePath}` + + await expectOutputToContain(outputView, 'Using already unsealed Radicle identity') + + await $`rm -rf ${tempNodeHomePath}` + }) }) })