Skip to content

Commit

Permalink
test(e2e): write test for creating the directory after the setting is…
Browse files Browse the repository at this point in the history
… updated

Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
  • Loading branch information
QZera committed Jan 4, 2025
1 parent fc3b599 commit fb82cd9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/e2e/specs/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
})
})
})

Expand Down

0 comments on commit fb82cd9

Please sign in to comment.