From 7eabc593289cf2410bcbcf131bb138ee06139542 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Thu, 20 Mar 2025 13:08:54 +0100 Subject: [PATCH] adjust some details to actually do what the test is intended to do Signed-off-by: Simon L. --- php/tests/tests/restore-instance.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/php/tests/tests/restore-instance.spec.js b/php/tests/tests/restore-instance.spec.js index fef4ec01..189acd0e 100644 --- a/php/tests/tests/restore-instance.spec.js +++ b/php/tests/tests/restore-instance.spec.js @@ -32,16 +32,16 @@ test('Restore instance', async ({ page: setupPage }) => { // Reject invalid backup location await containersPage.locator('#borg_restore_host_location').click(); - await containersPage.locator('#borg_restore_host_location').fill('/mnt/foobar'); + await containersPage.locator('#borg_restore_host_location').fill('/mnt/test/aio-incorrect-path'); await containersPage.locator('#borg_restore_password').click(); - await containersPage.locator('#borg_restore_password').fill('foobar'); + await containersPage.locator('#borg_restore_password').fill(borgBackupPassword); await containersPage.getByRole('button', { name: 'Submit location and encryption password' }).click() await containersPage.getByRole('button', { name: 'Test path and encryption' }).click(); await expect(containersPage.getByRole('main')).toContainText('Last test failed!', { timeout: 60 * 1000 }); // Reject invalid backup password await containersPage.locator('#borg_restore_host_location').click(); - await containersPage.locator('#borg_restore_host_location').fill('/mnt/backup'); + await containersPage.locator('#borg_restore_host_location').fill(borgBackupLocation); await containersPage.locator('#borg_restore_password').click(); await containersPage.locator('#borg_restore_password').fill('foobar'); await containersPage.getByRole('button', { name: 'Submit location and encryption password' }).click()