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 a62b0b6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/e2e/specs/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,23 @@ describe('Settings', () => {

await $`rm -rf ${tempNodeHomePath}`
})

// This functionality does not seem to work
// eslint-disable-next-line max-len
it.skip('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 a62b0b6

Please sign in to comment.