aboutsummaryrefslogtreecommitdiffstats
path: root/cypress/dockerNode.ts
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-10 00:37:42 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-07-10 01:35:25 +0200
commit12e1c29245792dc9a24a0d6757abf3b1f71eb1a7 (patch)
tree0a0333fe4d4f7a4b5ef1cb15e2cda71d6cb3a034 /cypress/dockerNode.ts
parentd82565d67d071dce0208323decc455da9d8625ef (diff)
downloadnextcloud-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.ts13
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
}