Support original-language movie requests and fix repair dialog layout
Magent CI/CD / verify (push) Successful in 1m54s
Magent CI/CD / deploy-prod (push) Skipped
Magent CI/CD / deploy-beta (push) Skipped

This commit is contained in:
2026-09-11 18:05:18 +12:00
parent 52c85daae3
commit 38169b881e
11 changed files with 238 additions and 5 deletions
+6
View File
@@ -34,6 +34,12 @@ const base = process.env.REVIEW_BASE || 'http://localhost:3114';
assert.equal(await dialog.getByLabel('Magent account to keep').inputValue(), '36');
assert(await dialog.getByRole('button', { name: 'Confirm duplicate repair' }).isDisabled());
assert(await dialog.evaluate(el => el.scrollWidth <= el.clientWidth), 'No horizontal overflow');
const bounds = await dialog.boundingBox();
assert(Math.abs(bounds.x + bounds.width / 2 - width / 2) < 2, 'Dialog centered horizontally');
assert(bounds.y >= 19 && bounds.y + bounds.height <= 981, 'Dialog stays inside viewport');
await dialog.getByRole('checkbox').scrollIntoViewIfNeeded();
await dialog.getByRole('checkbox').check();
assert(await dialog.getByRole('button', { name: 'Confirm duplicate repair' }).isEnabled());
await page.keyboard.press('Escape'); await dialog.waitFor({ state: 'hidden' });
assert(await trigger.evaluate(el => el === document.activeElement));
}