1
0

Use history stack approach
All checks were successful
Build and test project / build-and-test (push) Successful in 1m30s

This commit is contained in:
2026-03-19 20:33:42 +01:00
parent 290b8a32b7
commit cc1ac91253
2 changed files with 28 additions and 19 deletions

View File

@@ -903,9 +903,9 @@ test.describe('Custom patches', () => {
await expect(page.locator('#error-message')).toContainText('Build failed');
await expect(page.locator('#btn-error-back')).toBeVisible();
// "Select different patches" should return to mode selection (auto mode)
// "Select different patches" should return to patches step
await page.click('#btn-error-back');
await expect(page.locator('#step-mode')).not.toBeHidden();
await expect(page.locator('#step-patches')).not.toBeHidden();
});
test('with device — real patch failure with Go Back (Allow rotation)', async ({ page }) => {
@@ -936,11 +936,9 @@ test.describe('Custom patches', () => {
]);
if (doneOrError === 'error') {
// Build failed — "Select different patches" should return to mode selection
await expect(page.locator('#error-message')).toContainText('Build failed');
await expect(page.locator('#btn-error-back')).toBeVisible();
// Build failed — "Select different patches" should return to patches step
await page.click('#btn-error-back');
await expect(page.locator('#step-mode')).not.toBeHidden();
await expect(page.locator('#step-patches')).not.toBeHidden();
} else {
// Build succeeded — check if the patch was skipped
const logText = await page.locator('#build-log').textContent();