mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
adjust some details to actually do what the test is intended to do
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
8ddd123568
commit
7eabc59328
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue