Support original-language movie requests and fix repair dialog layout
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user