1
0

Test for back button

This commit is contained in:
2026-03-23 21:35:26 +01:00
parent fe33b1a4b6
commit 87e78fcdf6
2 changed files with 7 additions and 1 deletions

View File

@@ -756,9 +756,14 @@ test.describe('Custom patches', () => {
await expect(page.locator('#device-status')).toContainText('NickelMenu does not support it');
await expect(page.locator('#device-status')).toHaveClass(/error/);
// Continue and restore buttons should be hidden
// Continue and restore buttons should be hidden, but Back should be visible
await expect(page.locator('#btn-device-next')).toBeHidden();
await expect(page.locator('#btn-device-restore')).toBeHidden();
await expect(page.locator('#btn-device-back')).toBeVisible();
// Back should return to connect step
await page.click('#btn-device-back');
await expect(page.locator('#step-connect')).not.toBeHidden();
});
test('with device — unknown model shows warning and requires checkbox', async ({ page }) => {