diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-10 00:37:42 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-10 01:35:25 +0200 |
commit | 12e1c29245792dc9a24a0d6757abf3b1f71eb1a7 (patch) | |
tree | 0a0333fe4d4f7a4b5ef1cb15e2cda71d6cb3a034 /cypress/dockerNode.ts | |
parent | d82565d67d071dce0208323decc455da9d8625ef (diff) | |
download | nextcloud-server-12e1c29245792dc9a24a0d6757abf3b1f71eb1a7.tar.gz nextcloud-server-12e1c29245792dc9a24a0d6757abf3b1f71eb1a7.zip |
test: Adjust cypress tests to use reusable POM for header navigation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'cypress/dockerNode.ts')
-rw-r--r-- | cypress/dockerNode.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/cypress/dockerNode.ts b/cypress/dockerNode.ts index 530a013aa2c..180ff7894c6 100644 --- a/cypress/dockerNode.ts +++ b/cypress/dockerNode.ts @@ -150,22 +150,19 @@ export const applyChangesToNextcloud = async function() { './remote.php', './status.php', './version.php', - ] - - let needToApplyChanges = false - - folderPaths.forEach((folderPath) => { - const fullPath = path.join(htmlPath, folderPath) + ].filter((folderPath) => { + const fullPath = path.resolve(__dirname, '..', folderPath) if (existsSync(fullPath)) { - needToApplyChanges = true console.log(`├─ Copying ${folderPath}`) + return true } + return false }) // Don't try to apply changes, when there are none. Otherwise we // still execute the 'chown' command, which is not needed. - if (!needToApplyChanges) { + if (folderPaths.length === 0) { console.log('└─ No local changes found to apply') return } |