Use test path that exists on macos, too

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl
2026-06-03 11:05:31 +02:00
parent 335db2aac2
commit fa98d22724
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ test('Initial setup', async ({ page: setupPage }) => {
const initialNextcloudPassword = await containersPage.locator('#initial-nextcloud-password').innerText(); const initialNextcloudPassword = await containersPage.locator('#initial-nextcloud-password').innerText();
// Set backup location and create backup // Set backup location and create backup
const borgBackupLocation = `/mnt/test/aio-${Math.floor(Math.random() * 2147483647)}` const borgBackupLocation = `/tmp/test/aio-${Math.floor(Math.random() * 2147483647)}`
await containersPage.locator('#borg_backup_host_location').click(); await containersPage.locator('#borg_backup_host_location').click();
await containersPage.locator('#borg_backup_host_location').fill(borgBackupLocation); await containersPage.locator('#borg_backup_host_location').fill(borgBackupLocation);
await containersPage.getByRole('button', { name: 'Submit backup location' }).click(); await containersPage.getByRole('button', { name: 'Submit backup location' }).click();
+1 -1
View File
@@ -32,7 +32,7 @@ test('Restore instance', async ({ page: setupPage }) => {
// Reject invalid backup location // Reject invalid backup location
await containersPage.locator('#borg_restore_host_location').click(); await containersPage.locator('#borg_restore_host_location').click();
await containersPage.locator('#borg_restore_host_location').fill('/mnt/test/aio-incorrect-path'); await containersPage.locator('#borg_restore_host_location').fill('/tmp/test/aio-incorrect-path');
await containersPage.locator('#borg_restore_password').click(); await containersPage.locator('#borg_restore_password').click();
await containersPage.locator('#borg_restore_password').fill(borgBackupPassword); await containersPage.locator('#borg_restore_password').fill(borgBackupPassword);
await containersPage.getByRole('button', { name: 'Submit location and encryption password' }).click() await containersPage.getByRole('button', { name: 'Submit location and encryption password' }).click()