test: follow newest save slot on title screen

This commit is contained in:
2026-07-28 17:56:53 +09:00
parent 8cd7dd7eec
commit cf93ba7234

View File

@@ -129,9 +129,11 @@ async function verifyRenderer(browserInstance, renderer) {
assert.equal(title.motion.activeInfiniteTweenCount, 0);
await page.keyboard.press('Enter');
title = await waitForFocus(page, 'save-slots', 'slot-1');
title = await waitForFocus(page, 'save-slots', 'slot-3');
assert.equal(title.panels.saveSlots, true);
assert.equal(focusItem(title, 'slot-2').enabled, false);
await page.keyboard.press('ArrowUp');
await waitForFocus(page, 'save-slots', 'slot-1');
await page.keyboard.press('ArrowDown');
await waitForFocus(page, 'save-slots', 'slot-3');
await page.keyboard.press('Tab');
@@ -163,6 +165,8 @@ async function verifyRenderer(browserInstance, renderer) {
await page.keyboard.press('ArrowDown');
await waitForFocus(page, 'main', 'continue');
await page.keyboard.press('Space');
await waitForFocus(page, 'save-slots', 'slot-3');
await page.keyboard.press('ArrowUp');
await waitForFocus(page, 'save-slots', 'slot-1');
await page.keyboard.press('ArrowDown');
await waitForFocus(page, 'save-slots', 'slot-3');