test: follow newest save slot on title screen
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user