test(web): recognize save-and-enable after cancelling QR setup

This commit is contained in:
Hyu
2026-10-11 01:40:39 +08:00
parent 8548b5b951
commit 11f8cce43e
@@ -715,6 +715,8 @@ test.describe('wizard and QR platform regressions', () => {
await expect(dialog.getByRole('button', { name: 'Retry' })).toBeEnabled();
await dialog.getByRole('button', { name: 'Cancel' }).click();
await expect(dialog).toHaveCount(0);
await expect(page.getByRole('button', { name: /^Save$/ })).toBeVisible();
await expect(
page.getByRole('button', { name: /^Save(?: and enable)?$/ }),
).toBeVisible();
});
});