Skip to content

Commit 7eabc59

Browse files
committed
adjust some details to actually do what the test is intended to do
Signed-off-by: Simon L. <[email protected]>
1 parent 8ddd123 commit 7eabc59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

php/tests/tests/restore-instance.spec.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ test('Restore instance', async ({ page: setupPage }) => {
3232

3333
// Reject invalid backup location
3434
await containersPage.locator('#borg_restore_host_location').click();
35-
await containersPage.locator('#borg_restore_host_location').fill('/mnt/foobar');
35+
await containersPage.locator('#borg_restore_host_location').fill('/mnt/test/aio-incorrect-path');
3636
await containersPage.locator('#borg_restore_password').click();
37-
await containersPage.locator('#borg_restore_password').fill('foobar');
37+
await containersPage.locator('#borg_restore_password').fill(borgBackupPassword);
3838
await containersPage.getByRole('button', { name: 'Submit location and encryption password' }).click()
3939
await containersPage.getByRole('button', { name: 'Test path and encryption' }).click();
4040
await expect(containersPage.getByRole('main')).toContainText('Last test failed!', { timeout: 60 * 1000 });
4141

4242
// Reject invalid backup password
4343
await containersPage.locator('#borg_restore_host_location').click();
44-
await containersPage.locator('#borg_restore_host_location').fill('/mnt/backup');
44+
await containersPage.locator('#borg_restore_host_location').fill(borgBackupLocation);
4545
await containersPage.locator('#borg_restore_password').click();
4646
await containersPage.locator('#borg_restore_password').fill('foobar');
4747
await containersPage.getByRole('button', { name: 'Submit location and encryption password' }).click()

0 commit comments

Comments
 (0)