1
0

Allow going back to start

This commit is contained in:
2026-03-23 21:12:33 +01:00
parent a6dbc17840
commit fe33b1a4b6
4 changed files with 59 additions and 4 deletions

View File

@@ -1079,6 +1079,20 @@ test.describe('Custom patches', () => {
// Mode → Back → Device
await page.click('#btn-mode-back');
await expect(page.locator('#step-device')).not.toBeHidden();
// Device → Back → Connect
await page.click('#btn-device-back');
await expect(page.locator('#step-connect')).not.toBeHidden();
// After going back from device, switching to manual mode should not
// carry stale device state (patches should not appear pre-loaded).
await page.click('#btn-manual');
await expect(page.locator('#step-mode')).not.toBeHidden();
await expect(page.locator('input[name="mode"][value="patches"]')).not.toBeDisabled();
await page.click('input[name="mode"][value="patches"]');
await page.click('#btn-mode-next');
// Manual + patches should go to version selection (not straight to patches)
await expect(page.locator('#step-manual-version')).not.toBeHidden();
});
test('no device — back navigation through manual mode flow', async ({ page }) => {